summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-23 10:05:01 +0100
committerGitHub <noreply@github.com>2018-03-23 10:05:01 +0100
commitff2cb002d5af6db56224cdca87f91894e39e58e1 (patch)
tree70d6c6c4ee68b079b26a1232ab026c6fcab6abdc
parentb5af63fc8c9691490f566c9c02d9a4a2174a9e3f (diff)
parent14597dc2b264c02450dfd7a04314e77d27ea7dc7 (diff)
Merge pull request #17703 from bruvzg/fix_retina_drag
[macOS] 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