]> git.saurik.com Git - veency.git/commitdiff
Solve issues determining client window on retina displays. v0.9.3375
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 2 Oct 2011 19:05:09 +0000 (19:05 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 2 Oct 2011 19:05:09 +0000 (19:05 +0000)
Tweak.mm

index 8c86455cef38eb7cec1b7af02e4c9227c4ababa6..5902a7823b969a2f40a9fdf5a908b2f262cc802b 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -306,11 +306,12 @@ static bool iPad1_;
 static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) {
     if (ratio_ == 0)
         return;
 static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) {
     if (ratio_ == 0)
         return;
-    x /= ratio_;
-    y /= ratio_;
 
     CGPoint location = {x, y};
 
 
     CGPoint location = {x, y};
 
+    x /= ratio_;
+    y /= ratio_;
+
     if (width_ > height_) {
         int t(x);
         x = height_ / ratio_ - 1 - y;
     if (width_ > height_) {
         int t(x);
         x = height_ / ratio_ - 1 - y;