mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
Temp bugfix so that options menu will load, resolution that it tries to auto-select when opening did not exist and caused a crash.
This commit is contained in:
@@ -537,7 +537,7 @@ void getFullscreenVideoModes(list<ModeInfo> *modeinfos) {
|
|||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
/* Get available fullscreen/hardware modes */
|
/* Get available fullscreen/hardware modes */
|
||||||
SDL_Rect**modes = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE);
|
SDL_Rect**modes = SDL_ListModes(NULL, SDL_OPENGL|SDL_RESIZABLE);
|
||||||
|
|
||||||
/* Check if there are any modes available */
|
/* Check if there are any modes available */
|
||||||
if (modes == (SDL_Rect**)0) {
|
if (modes == (SDL_Rect**)0) {
|
||||||
|
Reference in New Issue
Block a user