mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r11501) -Fix: [OSX] This remedies a problem with right click scrolling that was introduced in r11492.
This commit is contained in:
parent
536be43411
commit
2e0dd78ccf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user