diff options
Diffstat (limited to 'src/i_video.c')
-rw-r--r-- | src/i_video.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/i_video.c b/src/i_video.c index 8197e674..64f2c449 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: i_video.c 51 2005-08-10 08:45:35Z fraggle $ +// $Id: i_video.c 61 2005-08-31 21:35:42Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,10 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.19 2005/08/31 21:35:42 fraggle +// Display the game name in the title bar. Move game start code to later +// in initialisation because of the IWAD detection changes. +// // Revision 1.18 2005/08/10 08:45:35 fraggle // Remove "if (french)" stuff, FRENCH define, detect french wad automatically // @@ -87,11 +91,12 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: i_video.c 51 2005-08-10 08:45:35Z fraggle $"; +rcsid[] = "$Id: i_video.c 61 2005-08-31 21:35:42Z fraggle $"; #include <ctype.h> #include <SDL.h> +#include "config.h" #include "w_wad.h" #include "z_zone.h" #include "doomstat.h" @@ -653,6 +658,23 @@ void I_SetPalette (byte *doompalette) palette_to_set = 1; } +// +// Set the window caption +// + +static void SetCaption(void) +{ + char *buf; + + buf = Z_Malloc(strlen(gamedescription) + strlen(PACKAGE_STRING) + 10, + PU_STATIC, NULL); + sprintf(buf, "%s - %s", gamedescription, PACKAGE_STRING); + + SDL_WM_SetCaption(buf, NULL); + + Z_Free(buf); +} + void I_InitGraphics(void) { @@ -685,6 +707,8 @@ void I_InitGraphics(void) I_Error("Error setting video mode: %s\n", SDL_GetError()); } + SetCaption(); + SDL_ShowCursor(0); SDL_WM_GrabInput(SDL_GRAB_ON); |