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

(cherry picked from commit 509afcea92)
This commit is contained in:
bruvzg 2019-10-13 23:15:20 +03:00 committed by Rémi Verschelde
parent cb33ac3842
commit 36eb43fff7
1 changed files with 2 additions and 0 deletions

View File

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