From 2b781d82d5d10b586754e9fb6428f5b872355bff Mon Sep 17 00:00:00 2001 From: Alam Ed Arias <alam@srb2.org> Date: Sat, 22 Mar 2014 15:54:46 -0400 Subject: [PATCH] Quartz is evil, we need to ask for a new modeList --- src/sdl/i_video.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 71c813646..1a2305fef 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1577,6 +1577,7 @@ const char *VID_GetModeName(INT32 modeNum) INT32 VID_GetModeForSize(INT32 w, INT32 h) { INT32 matchMode = -1, i; + VID_PrepareModeList(); if (USE_FULLSCREEN && numVidModes != -1) { for (i=firstEntry; i<numVidModes; i++) @@ -1642,6 +1643,14 @@ void VID_PrepareModeList(void) INT32 i; firstEntry = 0; + +#ifdef HWRENDER + if (rendermode == render_opengl) + modeList = SDL_ListModes(NULL, SDL_OPENGL|SDL_FULLSCREEN); + else +#endif + modeList = SDL_ListModes(NULL, surfaceFlagsF|SDL_HWSURFACE); //Alam: At least hardware surface + if (disable_fullscreen?0:cv_fullscreen.value) // only fullscreen needs preparation { if (-1 != numVidModes) -- GitLab