cocoa: Display mode changes set Desktop display mode, not current.
This commit is contained in:
1 parent
38176bfe9a
commit
fb0f6a1196
1 file changed
+1
-1
@@ -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