From de66976ff0a536542a83161f0edc978bb3a2dd48 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 22 Mar 2018 18:24:09 +0200 Subject: [PATCH] Fix dragging window from non-retina to retina display. (cherry picked from commit 14597dc2b264c02450dfd7a04314e77d27ea7dc7) --- platform/osx/os_osx.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index d57ba4d7357..89611498069 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -262,6 +262,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