mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-09 02:39:42 +00:00
Avoid unnescessarily updating fullscreen display modes
This commit is contained in:
committed by
Sam Lantinga
parent
5403934fd3
commit
e90bdfb5ea
@@ -1519,9 +1519,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