You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-07 19:53:17 +00:00
Fix dragging window from non-retina to retina display.
(cherry picked from commit 14597dc2b2)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
b08aa6fb3c
commit
de66976ff0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user