Even more FindArg cleanups

This commit is contained in:
zicodxx 2007-07-22 20:56:23 +00:00
parent faa6122a4a
commit 3354c26219
3 changed files with 6 additions and 6 deletions

View file

@ -54,7 +54,7 @@ void ogl_swap_buffers_internal(void)
int ogl_check_mode(int x, int y)
{
return !SDL_VideoModeOK(x, y, GameArg.GlBpp, SDL_OPENGL | (ogl_fullscreen?SDL_FULLSCREEN:0));
return !SDL_VideoModeOK(x, y, GameArg.DbgGlBpp, SDL_OPENGL | (ogl_fullscreen?SDL_FULLSCREEN:0));
}
@ -77,9 +77,9 @@ int ogl_init_window(int x, int y)
}
#endif
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%dx%d opengl video mode\n", x, y, bpp);
Error("Could not set %dx%dx%d opengl video mode\n", x, y, GameArg.DbgGlBpp);
}
SDL_ShowCursor(0);

View file

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

View file

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