From: Jay Freeman (saurik) Date: Fri, 9 Apr 2010 04:52:37 +0000 (+0000) Subject: Fix a coordinate system issue on the iPad. X-Git-Tag: v0.9.3165^0 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/d74737fa6823a3b8c40f1cc03dcd890553ff9ce7 Fix a coordinate system issue on the iPad. --- diff --git a/Tweak.mm b/Tweak.mm index d2a10d2..f64bcc4 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -270,6 +270,8 @@ static rfbBool VNCCheck(rfbClientPtr client, const char *data, int size) { } static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) { + CGPoint location = {x, y}; + if (Level_ == 2) { int t(x); x = height_ - 1 - y; @@ -375,7 +377,7 @@ static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) { NSArray *displays([server displays]); if (displays != nil && [displays count] != 0) if (CAWindowServerDisplay *display = [displays objectAtIndex:0]) - port = [display clientPortAtPosition:event.record.locationInWindow]; + port = [display clientPortAtPosition:location]; } if (port == 0) { diff --git a/control b/control index bce54c8..8c20f8d 100644 --- a/control +++ b/control @@ -5,7 +5,7 @@ Priority: optional Section: Networking Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3164-1 +Version: 0.9.3165-1 Description: a VNC /server/ for the iPhone Name: Veency Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver, com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0)