Revision: 13522
http://sourceforge.net/p/skim-app/code/13522
Author: hofman
Date: 2023-07-01 20:27:41 +0000 (Sat, 01 Jul 2023)
Log Message:
-----------
only bother to draw the page border in loupe when the page itself is visible
Modified Paths:
--------------
trunk/SKLoupeController.m
Modified: trunk/SKLoupeController.m
===================================================================
--- trunk/SKLoupeController.m 2023-06-29 18:55:39 UTC (rev 13521)
+++ trunk/SKLoupeController.m 2023-07-01 20:27:41 UTC (rev 13522)
@@ -317,6 +317,11 @@
CGContextSetShadowWithColor(context, shadowOffset,
shadowBlurRadius, shadowColor);
CGContextFillRect(context, pageRect);
CGContextRestoreGState(context);
+
+ // only draw the page when there is something to draw
+ if (CGRectIntersectsRect(rect, pageRect) == NO)
+ continue;
+
if (borderColor) {
CGContextSaveGState(context);
CGContextSetFillColorWithColor(context, borderColor);
@@ -326,10 +331,6 @@
CGContextRestoreGState(context);
}
- // only draw the page when there is something to draw
- if (CGRectIntersectsRect(rect, pageRect) == NO)
- continue;
-
// draw page contents
CGContextSaveGState(context);
CGContextConcatCTM(context,
CGAffineTransformScale(CGAffineTransformTranslate(t, pageOrigin.x,
pageOrigin.y), scaleFactor, scaleFactor));
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