summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2018-03-22 18:24:09 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2018-03-22 18:24:09 +0200
commit14597dc2b264c02450dfd7a04314e77d27ea7dc7 (patch)
treebc1a9149fcca7201a14906962e91f8af0e1fcea4
parentcc34406b5d48c8c09d51c0c8fe6d94b91303745f (diff)
Fix dragging window from non-retina to retina display.
-rw-r--r--platform/osx/os_osx.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index 56a6b5de23..0e7c0f1a4e 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -263,6 +263,7 @@ static Vector2 get_mouse_pos(NSEvent *event) {
NSWindow *window = (NSWindow *)[notification object];
CGFloat newBackingScaleFactor = [window backingScaleFactor];
CGFloat oldBackingScaleFactor = [[[notification userInfo] objectForKey:@"NSBackingPropertyOldScaleFactorKey"] doubleValue];
+ [OS_OSX::singleton->window_view setWantsBestResolutionOpenGLSurface:YES];
if (newBackingScaleFactor != oldBackingScaleFactor) {
//Set new display scale and window size