Revision: 13518
http://sourceforge.net/p/skim-app/code/13518
Author: hofman
Date: 2023-06-29 17:37:40 +0000 (Thu, 29 Jun 2023)
Log Message:
-----------
fix calculation of rect displayed in loupe when the loupe window is stuck near
the edge of the screen
Modified Paths:
--------------
trunk/SKLoupeController.m
Modified: trunk/SKLoupeController.m
===================================================================
--- trunk/SKLoupeController.m 2023-06-28 16:06:58 UTC (rev 13517)
+++ trunk/SKLoupeController.m 2023-06-29 17:37:40 UTC (rev 13518)
@@ -281,7 +281,7 @@
CGInterpolationQuality interpolation = [pdfView interpolationQuality] + 1;
BOOL shouldAntiAlias = [pdfView shouldAntiAlias];
PDFDisplayBox box = [pdfView displayBox];
- NSRect scaledRect = SKRectFromCenterAndSize(mouseLoc,
NSMakeSize(NSWidth(magRect) / magnification, NSHeight(magRect) /
magnification));
+ NSRect scaledRect = NSMakeRect(mouseLoc.x + (NSMinX(magRect) - mouseLoc.x)
/ magnification, mouseLoc.y + (NSMinY(magRect) - mouseLoc.y) / magnification,
NSWidth(magRect) / magnification, NSHeight(magRect) / magnification);
CGFloat backingScale = [pdfView backingScale];
NSRange pageRange;
#pragma clang diagnostic push
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit