Revision: 13690
http://sourceforge.net/p/skim-app/code/13690
Author: hofman
Date: 2023-10-23 22:29:38 +0000 (Mon, 23 Oct 2023)
Log Message:
-----------
do draw background in pdfview bitmap
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2023-10-23 22:03:07 UTC (rev 13689)
+++ trunk/SKBasePDFView.m 2023-10-23 22:29:38 UTC (rev 13690)
@@ -414,11 +414,13 @@
- (NSBitmapImageRep *)bitmapImageRepCachingDisplayInRect:(NSRect)rect {
// draw our own bitmap, because macOS 12 does it wrong
- // ignore background and page shadows because
+ // ignore page shadows because
NSBitmapImageRep *imageRep = [self
bitmapImageRepForCachingDisplayInRect:rect];
PDFDisplayBox *box = [self displayBox];
CGFloat scale = [self scaleFactor];
CGContextRef context = [[NSGraphicsContext
graphicsContextWithBitmapImageRep:imageRep] CGContext];
+ CGContextSetFillColorWithColor(context, [[self backgroundColor] CGColor]);
+ CGContextFillRect(context, CGRectMake(0.0, 0.0, NSWidth(rect),
NSHeight(rect)));
for (PDFPage *page in [self visiblePages]) {
NSRect pageRect = [self convertRect:[page boundsForBox:box]
fromPage:page];
if (NSIntersectsRect(pageRect, rect) == NO) continue;
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