changed window caption to include version info

This commit is contained in:
Bradley Bell 2001-10-09 08:17:07 +00:00
parent a8af626249
commit c629454cd3
2 changed files with 12 additions and 6 deletions

View file

@ -1,12 +1,15 @@
/*
* $Source: /cvs/cvsroot/d2x/video/ogl_sdl.c,v $
* $Revision: 1.3 $
* $Revision: 1.4 $
* $Author: bradleyb $
* $Date: 2001-10-09 02:58:20 $
* $Date: 2001-10-09 08:17:07 $
*
* Graphics functions for SDL-GL.
*
* $Log: not supported by cvs2svn $
* Revision 1.3 2001/10/09 02:58:20 bradleyb
* Added window caption, hide mouse cursor
*
* Revision 1.2 2001/01/29 13:47:52 bradleyb
* Fixed build, some minor cleanups.
*
@ -63,7 +66,7 @@ int ogl_init_window(int x, int y){
SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, bpp );
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
SDL_WM_SetCaption("D2x", "Descent II");
SDL_WM_SetCaption(DESCENT_VERSION, "Descent II");
if ( SDL_SetVideoMode( x, y, bpp, video_flags ) == NULL ) {
fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError());

View file

@ -1,12 +1,15 @@
/*
* $Source: /cvs/cvsroot/d2x/video/sdl_gr.c,v $
* $Revision: 1.4 $
* $Revision: 1.5 $
* $Author: bradleyb $
* $Date: 2001-01-31 13:59:23 $
* $Date: 2001-10-09 08:17:07 $
*
* SDL video functions.
*
* $Log: not supported by cvs2svn $
* Revision 1.4 2001/01/31 13:59:23 bradleyb
* Fullscreen toggle added to screen res menu
*
* Revision 1.3 2001/01/29 13:47:52 bradleyb
* Fixed build, some minor cleanups.
*
@ -105,7 +108,7 @@ int gr_set_mode(u_int32_t mode)
//Style "D1X*" NoTitle, NoHandles, BorderWidth 0
//if you can't use -fullscreen like me (crashes X), this is a big help in
//getting the window centered correctly (if you use SmartPlacement)
SDL_WM_SetCaption("D2x", "Descent II");
SDL_WM_SetCaption(DESCENT_VERSION, "Descent II");
//end addition -MM
//edited 10/05/98 by Matt Mueller - make fullscreen mode optional