Explorar el Código

cocoa: Display mode changes set Desktop display mode, not current.

Ryan C. Gordon hace 7 meses
padre
commit
fb0f6a1196
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/video/cocoa/SDL_cocoamodes.m

+ 1 - 1
src/video/cocoa/SDL_cocoamodes.m

@@ -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);
                 }