From e66d889d5c5a6e624cc43310c4416328878d9cc3 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 2 Oct 2011 19:05:09 +0000 Subject: [PATCH] Solve issues determining client window on retina displays. --- Tweak.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index 8c86455..5902a78 100644 --- 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; - x /= ratio_; - y /= ratio_; CGPoint location = {x, y}; + x /= ratio_; + y /= ratio_; + if (width_ > height_) { int t(x); x = height_ / ratio_ - 1 - y; -- 2.45.2