소스 검색

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

Ryan C. Gordon 9 달 전
부모
커밋
fb0f6a1196
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
                 }