Revision: 25639
          http://sourceforge.net/p/bibdesk/svn/25639
Author:   hofman
Date:     2021-03-20 23:57:57 +0000 (Sat, 20 Mar 2021)
Log Message:
-----------
Use paper size for cache and search file thumbnails

Modified Paths:
--------------
    trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m

Modified: trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m
===================================================================
--- trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m   2021-03-20 23:47:29 UTC 
(rev 25638)
+++ trunk/QuickLook-BibDesk/GenerateThumbnailForURL.m   2021-03-20 23:57:57 UTC 
(rev 25639)
@@ -47,7 +47,6 @@
 // Same size as [[NSPrintInfo sharedPrintInfo] paperSize] on my system
 // NSPrintInfo must not be used in a non-main thread (and it's hellishly slow 
in some circumstances)
 static const NSSize _paperSize = (NSSize) { 612, 792 };
-static const NSSize _listSize = (NSSize) { 512, 512 };
 
 // page margins 20 pt on all edges
 static const CGFloat _horizontalMargin = 20;
@@ -305,7 +304,7 @@
     [values release];
     
     if (attrString) {
-        drawIconForThumbnailWithAttributedString(thumbnail, attrString, 
_listSize);
+        drawIconForThumbnailWithAttributedString(thumbnail, attrString, 
_paperSize);
         [attrString release];
         didGenerate = true;
     }
@@ -326,7 +325,7 @@
     [values release];
     
     if (attrString) {
-        drawIconForThumbnailWithAttributedString(thumbnail, attrString, 
_listSize);
+        drawIconForThumbnailWithAttributedString(thumbnail, attrString, 
_paperSize);
         [attrString release];
         didGenerate = true;
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to