Print the version number in the window title

This commit is contained in:
Yamagi Burmeister 2012-02-09 16:56:24 +00:00
parent f8a9f6ead4
commit 35493a49b4
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,7 @@ Quake II 4.02 to 4.03
the configuration file and savegames. (reported by Richard Allen)
- Fix gl_ext_multitexture set to 1 (reported by Richard Allen
and Lukas Sabota)
- Print the version number in the window title.
Quake II 4.01 to 4.02
- Fix a linker problem manifesting only on Ubuntu.

View file

@ -145,6 +145,7 @@ static qboolean GLimp_InitGraphics( qboolean fullscreen )
int counter = 0;
int flags;
int stencil_bits;
char title[24];
if (surface && (surface->w == vid.width) && (surface->h == vid.height))
{
@ -253,7 +254,8 @@ static qboolean GLimp_InitGraphics( qboolean fullscreen )
}
/* Window title */
SDL_WM_SetCaption("Yamagi Quake II", "Yamagi Quake II");
snprintf(title, sizeof(title), "Yamagi Quake II v%4.2f", VERSION);
SDL_WM_SetCaption(title, title);
/* No cursor */
SDL_ShowCursor(0);