Permalink
Browse files

Cocoa Port: Fix bug where touch locations were being improperly calcu…

…lated on Retina displays. (Regression from commit 059ea51. Fixes #110.)
  • Loading branch information...
rogerman committed Oct 20, 2017
1 parent 97525d9 commit d9394594bf51e0c413b6d4979877d427a9ef33e8
Showing with 1 addition and 1 deletion.
  1. +1 −1 desmume/src/frontend/cocoa/userinterface/DisplayWindowController.mm
@@ -1696,7 +1696,7 @@ - (BOOL) handleMouseButton:(NSEvent *)theEvent buttonPressed:(BOOL)buttonPressed
const NSPoint clientLoc = [self convertPoint:[theEvent locationInWindow] fromView:nil];
cdv->GetNDSPoint(props,
props.clientWidth * scaleFactor, props.clientHeight * scaleFactor,
props.clientWidth / scaleFactor, props.clientHeight / scaleFactor,
(int)buttonNumber, isInitialMouseDown, clientLoc.x, clientLoc.y, x, y);
}

0 comments on commit d939459

Please sign in to comment.