Even more FindArg cleanups

This commit is contained in:
zicodxx 2007-07-22 20:56:23 +00:00
parent 88c53d941a
commit 44ae14c363
3 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ int ogl_init_window(int x, int y){
} }
SDL_WM_SetCaption(DESCENT_VERSION, "Descent"); SDL_WM_SetCaption(DESCENT_VERSION, "Descent");
if (!SDL_SetVideoMode(x,y, GameArg.GlBpp, SDL_OPENGL | (ogl_fullscreen?SDL_FULLSCREEN:0))) { if (!SDL_SetVideoMode(x,y, GameArg.DbgGlBpp, SDL_OPENGL | (ogl_fullscreen?SDL_FULLSCREEN:0))) {
Error("Could not set %dx%dx16 opengl video mode\n",x,y); Error("Could not set %dx%dx16 opengl video mode\n",x,y);
} }

View file

@ -91,7 +91,7 @@ typedef struct Arg
int DbgBigPig; int DbgBigPig;
#ifdef OGL #ifdef OGL
int DbgAltTexMerge; int DbgAltTexMerge;
int DbgBpp; int DbgGlBpp;
#endif #endif
} __attribute__ ((packed)) Arg; } __attribute__ ((packed)) Arg;

View file

@ -405,9 +405,9 @@ void ReadCmdArgs(void)
GameArg.DbgAltTexMerge = 1; GameArg.DbgAltTexMerge = 1;
if (FindArg("-gl_16bpp")) if (FindArg("-gl_16bpp"))
GameArg.GlBpp = 16; GameArg.DbgGlBpp = 16;
else else
GameArg.GlBpp = 32; GameArg.DbgGlBpp = 32;
#endif #endif
} }