mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
MacOS: Force disable application HiDPI support on NSView, fixes #794
This commit is contained in:
parent
d8481e7d22
commit
f72c72b36a
@ -549,6 +549,11 @@ open_window() {
|
||||
_parent_window_handle->attach_child(_window_handle);
|
||||
}
|
||||
|
||||
// Always disable application HiDPI support, Cocoa will do the eventual upscaling for us.
|
||||
// Note: setWantsBestResolutionOpenGLSurface method is supported from MacOS 10.7 onwards
|
||||
if ([_view respondsToSelector:@selector(setWantsBestResolutionOpenGLSurface:)]) {
|
||||
[_view setWantsBestResolutionOpenGLSurface:NO];
|
||||
}
|
||||
if (_properties.has_icon_filename()) {
|
||||
NSImage *image = load_image(_properties.get_icon_filename());
|
||||
if (image != nil) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user