mirror of https://github.com/godotengine/godot
Fix non-HiDPI mode on HiDPI displays on macOS Catalina.
(cherry picked from commit 509afcea92)
This commit is contained in:
parent
cb33ac3842
commit
36eb43fff7
|
|
@ -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*/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue