mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 19:48:51 +00:00
cocoa: Display mode changes set Desktop display mode, not current.
This commit is contained in:
parent
38176bfe9a
commit
fb0f6a1196
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue