Revision: 16314
          http://sourceforge.net/p/skim-app/code/16314
Author:   hofman
Date:     2026-05-25 14:38:28 +0000 (Mon, 25 May 2026)
Log Message:
-----------
don't bother at all with background of thumbnails, it did nott do anything 
anyway as there was no colorspace set

Modified Paths:
--------------
    trunk/QuickLook-Skim/GenerateThumbnailForURL.m
    trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m

Modified: trunk/QuickLook-Skim/GenerateThumbnailForURL.m
===================================================================
--- trunk/QuickLook-Skim/GenerateThumbnailForURL.m      2026-05-25 13:52:06 UTC 
(rev 16313)
+++ trunk/QuickLook-Skim/GenerateThumbnailForURL.m      2026-05-25 14:38:28 UTC 
(rev 16314)
@@ -79,10 +79,6 @@
     CGAffineTransform pageTransform = CGAffineTransformConcat(t2, t1);
     CGContextConcatCTM(context, pageTransform);
     
-    CGFloat color[4] = {1.0, 1.0, 1.0, 1.0};
-    CGContextSetFillColor(context, color);
-    CGContextFillRect(context, CGRectMake(-_horizontalMargin, 
-_verticalMargin, _paperSize.width, _paperSize.height));
-    
     // objectAtIndex:0 is safe, since we added these to the text storage (so 
there's at least one)
     NSLayoutManager *lm = [[textStorage layoutManagers] objectAtIndex:0];
     NSTextContainer *tc = [[lm textContainers] objectAtIndex:0];
@@ -130,13 +126,10 @@
                 if (pdfPage) {
                     CGRect pageRect = CGPDFPageGetBoxRect(pdfPage, 
kCGPDFCropBox);
                     CGRect thumbRect = {{0.0, 0.0}, {CGRectGetWidth(pageRect), 
CGRectGetHeight(pageRect)}};
-                    CGFloat color[4] = {1.0, 1.0, 1.0, 1.0};
                     CGContextRef ctxt = 
QLThumbnailRequestCreateContext(thumbnail, thumbRect.size, FALSE, NULL);
                     CGAffineTransform t = 
CGPDFPageGetDrawingTransform(pdfPage, kCGPDFCropBox, thumbRect, 0, true);
                     CGContextConcatCTM(ctxt, t);
                     CGContextClipToRect(ctxt, pageRect);
-                    CGContextSetFillColor(ctxt, color);
-                    CGContextFillRect(ctxt, pageRect);
                     CGContextDrawPDFPage(ctxt, pdfPage);
                     QLThumbnailRequestFlushContext(thumbnail, ctxt);
                     CGContextRelease(ctxt);
@@ -170,13 +163,10 @@
                     if (pdfPage) {
                         CGRect pageRect = CGPDFPageGetBoxRect(pdfPage, 
kCGPDFCropBox);
                         CGRect thumbRect = {{0.0, 0.0}, 
{CGRectGetWidth(pageRect), CGRectGetHeight(pageRect)}};
-                        CGFloat color[4] = {1.0, 1.0, 1.0, 1.0};
                         CGContextRef ctxt = 
QLThumbnailRequestCreateContext(thumbnail, thumbRect.size, FALSE, NULL);
                         CGAffineTransform t = 
CGPDFPageGetDrawingTransform(pdfPage, kCGPDFCropBox, thumbRect, 0, true);
                         CGContextConcatCTM(ctxt, t);
                         CGContextClipToRect(ctxt, pageRect);
-                        CGContextSetFillColor(ctxt, color);
-                        CGContextFillRect(ctxt, pageRect);
                         CGContextDrawPDFPage(ctxt, pdfPage);
                         QLThumbnailRequestFlushContext(thumbnail, ctxt);
                         CGContextRelease(ctxt);

Modified: trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m
===================================================================
--- trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m 2026-05-25 13:52:06 UTC 
(rev 16313)
+++ trunk/SkimQuickLookThumbnails/SKThumbnailProvider.m 2026-05-25 14:38:28 UTC 
(rev 16314)
@@ -80,10 +80,6 @@
     CGAffineTransform pageTransform = 
CGAffineTransformScale(CGAffineTransformTranslate(CGAffineTransformMakeScale(scale,
 scale), _horizontalMargin, _paperSize.height - _verticalMargin), 1, -1);
     CGContextConcatCTM(context, pageTransform);
     
-    CGFloat color[4] = {1.0, 1.0, 1.0, 1.0};
-    CGContextSetFillColor(context, color);
-    CGContextFillRect(context, CGRectMake(-_horizontalMargin, 
-_verticalMargin, _paperSize.width, _paperSize.height));
-    
     // objectAtIndex:0 is safe, since we added these to the text storage (so 
there's at least one)
     NSLayoutManager *lm = [[textStorage layoutManagers] objectAtIndex:0];
     NSTextContainer *tc = [[lm textContainers] objectAtIndex:0];
@@ -138,12 +134,9 @@
                 handler([QLThumbnailReply replyWithContextSize:size 
drawingBlock:^BOOL(CGContextRef context) {
             
                     CGRect thumbRect = CGContextGetClipBoundingBox(context);
-                    CGFloat color[4] = {1.0, 1.0, 1.0, 1.0};
                     CGAffineTransform t = 
CGPDFPageGetDrawingTransform(pdfPage, kCGPDFCropBox, thumbRect, 0, true);
                     CGContextConcatCTM(context, t);
                     CGContextClipToRect(context, pageRect);
-                    CGContextSetFillColor(context, color);
-                    CGContextFillRect(context, pageRect);
                     CGContextDrawPDFPage(context, pdfPage);
                     
                     CGPDFDocumentRelease(pdfDoc);
@@ -222,12 +215,9 @@
                         handler([QLThumbnailReply replyWithContextSize:size 
drawingBlock:^BOOL(CGContextRef context) {
                             
                             CGRect thumbRect = 
CGContextGetClipBoundingBox(context);
-                            CGFloat color[4] = {1.0, 1.0, 1.0, 1.0};
                             CGAffineTransform t = 
CGPDFPageGetDrawingTransform(pdfPage, kCGPDFCropBox, thumbRect, 0, true);
                             CGContextConcatCTM(context, t);
                             CGContextClipToRect(context, pageRect);
-                            CGContextSetFillColor(context, color);
-                            CGContextFillRect(context, pageRect);
                             CGContextDrawPDFPage(context, pdfPage);
                             
                             CGPDFDocumentRelease(pdfDoc);

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

Reply via email to