Cocoa Port: Fix bug where touch locations were being improperly calculated on Retina displays. (Regression from commit 059ea51
. Fixes #110.)
This commit is contained in:
parent
97525d94d7
commit
d9394594bf
|
@ -1696,7 +1696,7 @@ static std::unordered_map<NSScreen *, DisplayWindowController *> _screenMap; //
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue