Revision: 14302
http://sourceforge.net/p/skim-app/code/14302
Author: hofman
Date: 2024-06-05 14:15:40 +0000 (Wed, 05 Jun 2024)
Log Message:
-----------
don't bother with shadow when drawing full size page in thumbnail, there will
be none
Modified Paths:
--------------
trunk/PDFPage_SKExtensions.m
Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m 2024-06-05 09:48:33 UTC (rev 14301)
+++ trunk/PDFPage_SKExtensions.m 2024-06-05 14:15:40 UTC (rev 14302)
@@ -173,11 +173,10 @@
thumbnailSize = NSMakeSize(aSize, round((aSize - 2.0 *
shadowBlurRadius) * pageSize.height / pageSize.width + 2.0 * shadowBlurRadius));
scale = fmax((thumbnailSize.width - 2.0 * shadowBlurRadius) /
pageSize.width, (thumbnailSize.height - 2.0 * shadowBlurRadius) /
pageSize.height);
} else {
- thumbnailSize = hasShadow ? NSMakeSize(pageSize.width + 2.0 *
shadowBlurRadius, pageSize.height + 2.0 * shadowBlurRadius) : pageSize;
+ thumbnailSize = pageSize;
}
pageRect.size = thumbnailSize;
-
if (hasShadow) {
pageRect = NSInsetRect(pageRect, shadowBlurRadius, shadowBlurRadius);
pageRect.origin.y -= shadowOffset;
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