Browse Source

Fix non-HiDPI mode on HiDPI displays on macOS Catalina.

(cherry picked from commit 509afcea92ee12649a8bed982ae6bff7bc984c7c)
bruvzg 5 years ago
parent
commit
36eb43fff7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      platform/osx/os_osx.mm

+ 2 - 0
platform/osx/os_osx.mm

@@ -921,6 +921,8 @@ void OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_au
 		[window_view setWantsBestResolutionOpenGLSurface:YES];
 		[window_view setWantsBestResolutionOpenGLSurface:YES];
 		//if (current_videomode.resizable)
 		//if (current_videomode.resizable)
 		[window_object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
 		[window_object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
+	} else {
+		[window_view setWantsBestResolutionOpenGLSurface:NO];
 	}
 	}
 #endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/
 #endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/