mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-08 18:29:43 +00:00
Avoid unnescessarily updating fullscreen display modes
(cherry picked from commit e90bdfb5ea)
This commit is contained in:
committed by
Sam Lantinga
parent
4f629701fb
commit
af5b015b21
@@ -1509,9 +1509,6 @@ const SDL_DisplayMode *SDL_GetCurrentDisplayMode(SDL_DisplayID displayID)
|
||||
|
||||
CHECK_DISPLAY_MAGIC(display, NULL);
|
||||
|
||||
// Make sure our mode list is updated
|
||||
SDL_UpdateFullscreenDisplayModes(display);
|
||||
|
||||
return display->current_mode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user