From: Marc-Aurel Zent mzent@codeweavers.com
--- dlls/winemac.drv/cocoa_app.m | 4 ++-- dlls/winemac.drv/macdrv_cocoa.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m index f57e4b2f27a..a9cb75bf7d1 100644 --- a/dlls/winemac.drv/cocoa_app.m +++ b/dlls/winemac.drv/cocoa_app.m @@ -1023,7 +1023,7 @@ - (void) setCursor
if (!CGPointMakeWithDictionaryRepresentation(hotSpotDict, &hotSpot)) hotSpot = CGPointZero; - hotSpot = cgpoint_mac_from_win(hotSpot); + hotSpot = cgpoint_mac_from_win(hotSpot, retina_on); self.cursor = [[[NSCursor alloc] initWithImage:image hotSpot:NSPointFromCGPoint(hotSpot)] autorelease]; [image release]; [self unhideCursor]; @@ -2550,7 +2550,7 @@ int macdrv_set_cursor_position(CGPoint pos) __block int ret;
OnMainThread(^{ - ret = [[WineApplicationController sharedController] setCursorPosition:cgpoint_mac_from_win(pos)]; + ret = [[WineApplicationController sharedController] setCursorPosition:cgpoint_mac_from_win(pos, retina_on)]; });
return ret; diff --git a/dlls/winemac.drv/macdrv_cocoa.h b/dlls/winemac.drv/macdrv_cocoa.h index d1225f65e05..870fcae6691 100644 --- a/dlls/winemac.drv/macdrv_cocoa.h +++ b/dlls/winemac.drv/macdrv_cocoa.h @@ -207,9 +207,9 @@ static inline CGSize cgsize_win_from_mac(CGSize size) return size; }
-static inline CGPoint cgpoint_mac_from_win(CGPoint point) +static inline CGPoint cgpoint_mac_from_win(CGPoint point, int retina_scale) { - if (retina_on) + if (retina_scale) { point.x /= 2; point.y /= 2;