Skip to content

Commit

Permalink
cocoa: Display mode changes set Desktop display mode, not current.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 10, 2025
1 parent 38176bf commit fb0f6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoamodes.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fb0f6a1

Please sign in to comment.