mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 15:21:43 +00:00
cocoa: Display mode changes set Desktop display mode, not current.
This commit is contained in:
@@ -433,7 +433,7 @@ static void Cocoa_DisplayReconfigurationCallback(CGDirectDisplayID displayid, CG
|
||||
if (link) {
|
||||
SDL_DisplayMode mode;
|
||||
if (GetDisplayMode(moderef, true, NULL, link, &mode)) {
|
||||
SDL_SetCurrentDisplayMode(display, &mode);
|
||||
SDL_SetDesktopDisplayMode(display, &mode);
|
||||
}
|
||||
CVDisplayLinkRelease(link);
|
||||
}
|
||||
|
Reference in New Issue
Block a user