diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index 598af528d..bd04e2a02 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -182,7 +182,7 @@ void OglSdlFinishUpdate(boolean waitvbl) oldwaitvbl = waitvbl; - SDL_GetWindowSize(window, &sdlw, &sdlh); + SDL_GetWindowSizeInPixels(window, &sdlw, &sdlh); HWR_MakeScreenFinalTexture(); HWR_DrawScreenFinalTexture(sdlw, sdlh);