From 2e0dd78ccfe2e4d12fbfd8b37a29fbc7d4d15b08 Mon Sep 17 00:00:00 2001 From: egladil Date: Fri, 23 Nov 2007 13:45:59 +0000 Subject: (svn r11501) -Fix: [OSX] This remedies a problem with right click scrolling that was introduced in r11492. --- src/video/cocoa/wnd_quartz.mm | 3 ++- src/video/cocoa/wnd_quickdraw.mm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index 28603d8e4..bb1f2850e 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -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; diff --git a/src/video/cocoa/wnd_quickdraw.mm b/src/video/cocoa/wnd_quickdraw.mm index 4c125ae38..41d807bee 100644 --- a/src/video/cocoa/wnd_quickdraw.mm +++ b/src/video/cocoa/wnd_quickdraw.mm @@ -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; -- cgit v1.2.3-70-g09d2