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) {
|
if (link) {
|
||||||
SDL_DisplayMode mode;
|
SDL_DisplayMode mode;
|
||||||
if (GetDisplayMode(moderef, true, NULL, link, &mode)) {
|
if (GetDisplayMode(moderef, true, NULL, link, &mode)) {
|
||||||
SDL_SetCurrentDisplayMode(display, &mode);
|
SDL_SetDesktopDisplayMode(display, &mode);
|
||||||
}
|
}
|
||||||
CVDisplayLinkRelease(link);
|
CVDisplayLinkRelease(link);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user