Even more FindArg cleanups
This commit is contained in:
parent
88c53d941a
commit
44ae14c363
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue