Revision: 16321
http://sourceforge.net/p/skim-app/code/16321
Author: hofman
Date: 2026-05-26 22:47:25 +0000 (Tue, 26 May 2026)
Log Message:
-----------
do draw white background for thumbnails, not sure what happens on 10.15
Modified Paths:
--------------
trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m
Modified: trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m
===================================================================
--- trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m 2026-05-26 22:32:34 UTC
(rev 16320)
+++ trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m 2026-05-26 22:47:25 UTC
(rev 16321)
@@ -76,7 +76,12 @@
CGContextSaveGState(context);
- CGFloat scale = CGContextGetClipBoundingBox(context).size.height /
_paperSize.height;
+ CGRect thumbnailRect = CGContextGetClipBoundingBox(context);
+
+ CGContextSetGrayFillColor(context, 1, 1);
+ CGContextFillRect(context, thumbnailRect);
+
+ CGFloat scale = thumbnailRect.size.height / _paperSize.height;
CGAffineTransform pageTransform =
CGAffineTransformScale(CGAffineTransformTranslate(CGAffineTransformMakeScale(scale,
scale), _horizontalMargin, _paperSize.height - _verticalMargin), 1, -1);
CGContextConcatCTM(context, pageTransform);
@@ -140,6 +145,8 @@
CGContextSaveGState(context);
CGContextConcatCTM(context, t);
CGContextClipToRect(context, pageRect);
+ CGContextSetGrayFillColor(context, 1, 1);
+ CGContextFillRect(context, pageRect);
CGContextDrawPDFPage(context, pdfPage);
CGContextRestoreGState(context);
@@ -230,6 +237,8 @@
CGContextSaveGState(context);
CGContextConcatCTM(context, t);
CGContextClipToRect(context, pageRect);
+ CGContextSetGrayFillColor(context, 1, 1);
+ CGContextFillRect(context, pageRect);
CGContextDrawPDFPage(context, pdfPage);
CGContextRestoreGState(context);
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