X-Git-Url: https://git.saurik.com/veency.git/blobdiff_plain/735c7db50c6a59d2f5d8693a38f43011f08c4d47..e66d889d5c5a6e624cc43310c4416328878d9cc3:/Tweak.mm 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;