From 215fbdb33ff7068fb6828f724a357ccc4e2e9e5c Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 1 Apr 2010 07:38:49 +0000 Subject: [PATCH] Temp bugfix so that options menu will load, resolution that it tries to auto-select when opening did not exist and caused a crash. --- source/shared_lib/sources/platform/sdl/platform_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/platform/sdl/platform_util.cpp b/source/shared_lib/sources/platform/sdl/platform_util.cpp index 372fa4fa..82228899 100644 --- a/source/shared_lib/sources/platform/sdl/platform_util.cpp +++ b/source/shared_lib/sources/platform/sdl/platform_util.cpp @@ -537,7 +537,7 @@ void getFullscreenVideoModes(list *modeinfos) { SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); /* 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 */ if (modes == (SDL_Rect**)0) {