diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 03de99d4e..54e8878eb 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -620,7 +620,7 @@ static void I_CheckDesktopRes(void) return; } - if (SDL_GetCurrentDisplayMode(currentDisplayIndex, &curmode) != 0) + if (SDL_GetDesktopDisplayMode(currentDisplayIndex, &curmode) != 0) { return; } @@ -1639,7 +1639,7 @@ static UINT32 VID_GetRefreshRate(void) return 0; } - if (SDL_GetCurrentDisplayMode(index, &m) != 0) + if (SDL_GetDesktopDisplayMode(index, &m) != 0) { // Error has occurred. return 0;