From 14597dc2b264c02450dfd7a04314e77d27ea7dc7 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: Fix dragging window from non-retina to retina display. --- 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 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 -- cgit v1.2.3