]> git.saurik.com Git - veency.git/commitdiff
Fix a coordinate system issue on the iPad. v0.9.3165
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 9 Apr 2010 04:52:37 +0000 (04:52 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 9 Apr 2010 04:52:37 +0000 (04:52 +0000)
Tweak.mm
control

index d2a10d2776dcc53bb74e06236917e7a0824af56b..f64bcc419992f9a831cce73c7263c20be2c131b2 100644 (file)
--- 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 bce54c82752f2bf79dada692696f4207bc711ddf..8c20f8d898956e9fde17126fa6daa94bf5d4a061 100644 (file)
--- a/control
+++ b/control
@@ -5,7 +5,7 @@ Priority: optional
 Section: Networking
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 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)