mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 15:39:09 +00:00
(svn r11501) -Fix: [OSX] This remedies a problem with right click scrolling that was introduced in r11492.
This commit is contained in:
@@ -690,9 +690,10 @@ CGPoint WindowQuartzSubdriver::PrivateLocalToCG(NSPoint* p)
|
||||
{
|
||||
CGPoint cgp;
|
||||
|
||||
p->y = window_height - p->y;
|
||||
*p = [ qzview convertPoint:*p toView: nil ];
|
||||
*p = [ window convertBaseToScreen:*p ];
|
||||
p->y = window_height - p->y;
|
||||
p->y = device_height - p->y;
|
||||
|
||||
cgp.x = p->x;
|
||||
cgp.y = p->y;
|
||||
|
@@ -717,7 +717,7 @@ CGPoint WindowQuickdrawSubdriver::PrivateLocalToCG(NSPoint* p)
|
||||
|
||||
*p = [ qdview convertPoint:*p toView: nil ];
|
||||
*p = [ window convertBaseToScreen:*p ];
|
||||
p->y = window_height - p->y;
|
||||
p->y = device_height - p->y;
|
||||
|
||||
cgp.x = p->x;
|
||||
cgp.y = p->y;
|
||||
|
Reference in New Issue
Block a user