From bd750d26348728ed2be2df7ea5bb86698ba9e0f8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 21 Jul 2023 13:35:21 +0200 Subject: [PATCH] Fix incoming drag drop location on macOS --- Source/Engine/Platform/Mac/MacWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Engine/Platform/Mac/MacWindow.cpp b/Source/Engine/Platform/Mac/MacWindow.cpp index aeee93e37..000accbfa 100644 --- a/Source/Engine/Platform/Mac/MacWindow.cpp +++ b/Source/Engine/Platform/Mac/MacWindow.cpp @@ -202,8 +202,7 @@ void GetDragDropData(const MacWindow* window, id sender, Float2& { NSRect frame = [(NSWindow*)window->GetNativePtr() frame]; NSPoint point = [sender draggingLocation]; - Float2 titleSize = GetWindowTitleSize(window); - mousePos = Float2(point.x, frame.size.height - point.y) - titleSize; + mousePos = Float2(point.x, frame.size.height - point.y) * MacPlatform::ScreenScale - GetWindowTitleSize(window); NSPasteboard* pasteboard = [sender draggingPasteboard]; if ([[pasteboard types] containsObject:NSPasteboardTypeString]) {