* Change window title

This commit is contained in:
Tim Angus 2006-03-24 17:28:27 +00:00
parent 4f55e9f989
commit f63472025f
5 changed files with 11 additions and 14 deletions

View file

@ -26,7 +26,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// q_shared.h -- included first by ALL program modules. // q_shared.h -- included first by ALL program modules.
// A user mod should never modify this file // A user mod should never modify this file
#define Q3_VERSION "ioQ3 1.34-rc1" #define Q3_VERSION "ioq3 1.33"
#define CLIENT_WINDOW_TITLE "icculus.org/quake3"
#define CLIENT_WINDOW_ICON "ioq3"
#define CONSOLE_WINDOW_TITLE "icculus.org/quake3 console"
#define CONSOLE_WINDOW_ICON "ioq3 console"
// 1.32 released 7-10-2002 // 1.32 released 7-10-2002
#define MAX_TEAMNAME 32 #define MAX_TEAMNAME 32

View file

@ -81,8 +81,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define HAVE_XF86DGA #define HAVE_XF86DGA
#endif #endif
#define WINDOW_CLASS_NAME "Quake III: Arena"
typedef enum typedef enum
{ {
RSERR_OK, RSERR_OK,
@ -1150,7 +1148,7 @@ int GLW_SetMode( const char *drivername, int mode, qboolean fullscreen )
0, visinfo->depth, InputOutput, 0, visinfo->depth, InputOutput,
visinfo->visual, mask, &attr); visinfo->visual, mask, &attr);
XStoreName( dpy, win, WINDOW_CLASS_NAME ); XStoreName( dpy, win, CLIENT_WINDOW_TITLE );
/* GH: Don't let the window be resized */ /* GH: Don't let the window be resized */
sizehints.flags = PMinSize | PMaxSize; sizehints.flags = PMinSize | PMaxSize;

View file

@ -89,9 +89,6 @@ typedef void *QGLContext;
static QGLContext opengl_context; static QGLContext opengl_context;
#define WINDOW_CLASS_NAME "Quake III: Arena"
#define WINDOW_CLASS_NAME_BRIEF "quake3"
//#define KBD_DBG //#define KBD_DBG
typedef enum typedef enum
@ -632,7 +629,7 @@ static int GLW_SetMode( const char *drivername, int mode, qboolean fullscreen )
SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, tstencilbits ); SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, tstencilbits );
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
SDL_WM_SetCaption(WINDOW_CLASS_NAME, WINDOW_CLASS_NAME_BRIEF); SDL_WM_SetCaption(CLIENT_WINDOW_TITLE, CLIENT_WINDOW_ICON);
SDL_ShowCursor(0); SDL_ShowCursor(0);
SDL_EnableUNICODE(1); SDL_EnableUNICODE(1);
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);

View file

@ -57,8 +57,6 @@ typedef enum {
#define TRY_PFD_FAIL_SOFT 1 #define TRY_PFD_FAIL_SOFT 1
#define TRY_PFD_FAIL_HARD 2 #define TRY_PFD_FAIL_HARD 2
#define WINDOW_CLASS_NAME "Quake 3: Arena"
static void GLW_InitExtensions( void ); static void GLW_InitExtensions( void );
static rserr_t GLW_SetMode( const char *drivername, static rserr_t GLW_SetMode( const char *drivername,
int mode, int mode,
@ -600,7 +598,7 @@ static qboolean GLW_CreateWindow( const char *drivername, int width, int height,
wc.hCursor = LoadCursor (NULL,IDC_ARROW); wc.hCursor = LoadCursor (NULL,IDC_ARROW);
wc.hbrBackground = (void *)COLOR_GRAYTEXT; wc.hbrBackground = (void *)COLOR_GRAYTEXT;
wc.lpszMenuName = 0; wc.lpszMenuName = 0;
wc.lpszClassName = WINDOW_CLASS_NAME; wc.lpszClassName = CLIENT_WINDOW_TITLE;
if ( !RegisterClass( &wc ) ) if ( !RegisterClass( &wc ) )
{ {
@ -669,8 +667,8 @@ static qboolean GLW_CreateWindow( const char *drivername, int width, int height,
g_wv.hWnd = CreateWindowEx ( g_wv.hWnd = CreateWindowEx (
exstyle, exstyle,
WINDOW_CLASS_NAME, CLIENT_WINDOW_TITLE,
"Quake 3: Arena", CLIENT_WINDOW_TITLE,
stylebits, stylebits,
x, y, w, h, x, y, w, h,
NULL, NULL,

View file

@ -334,7 +334,7 @@ void Sys_CreateConsole( void )
s_wcd.hWnd = CreateWindowEx( 0, s_wcd.hWnd = CreateWindowEx( 0,
DEDCLASS, DEDCLASS,
"Quake 3 Console", CONSOLE_WINDOW_TITLE,
DEDSTYLE, DEDSTYLE,
( swidth - 600 ) / 2, ( sheight - 450 ) / 2 , rect.right - rect.left + 1, rect.bottom - rect.top + 1, ( swidth - 600 ) / 2, ( sheight - 450 ) / 2 , rect.right - rect.left + 1, rect.bottom - rect.top + 1,
NULL, NULL,