Revision: 15985
http://sourceforge.net/p/skim-app/code/15985
Author: hofman
Date: 2026-01-09 15:51:25 +0000 (Fri, 09 Jan 2026)
Log Message:
-----------
proper CGRect variables
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-01-09 15:38:39 UTC (rev 15984)
+++ trunk/SKPDFView.m 2026-01-09 15:51:25 UTC (rev 15985)
@@ -426,22 +426,22 @@
}
- (void)drawSelectionRect:(NSRect)rect atIndex:(NSUInteger)pageIndex
forPage:(PDFPage *)pdfPage inContext:(CGContextRef)context {
- NSRect bounds = [pdfPage boundsForBox:[self displayBox]];
+ CGRect bounds = NSRectToCGRect([pdfPage boundsForBox:[self displayBox]]);
CGColorRef color = CGColorCreateGenericGray(0.0, 0.6);
- rect = CGContextConvertRectToUserSpace(context,
CGRectIntegral(CGContextConvertRectToDeviceSpace(context, rect)));
+ CGRect r = CGContextConvertRectToUserSpace(context,
CGRectIntegral(CGContextConvertRectToDeviceSpace(context,
NSRectToCGRect(rect))));
CGContextSetFillColorWithColor(context, color);
CGColorRelease(color);
CGContextBeginPath(context);
- CGContextAddRect(context, NSRectToCGRect(bounds));
- CGContextAddRect(context, NSRectToCGRect(rect));
+ CGContextAddRect(context, bounds);
+ CGContextAddRect(context, r);
CGContextEOFillPath(context);
if ([pdfPage pageIndex] != pageIndex) {
color = CGColorCreateGenericGray(0.0, 0.3);
CGContextSetFillColorWithColor(context, color);
CGColorRelease(color);
- CGContextFillRect(context, NSRectToCGRect(rect));
+ CGContextFillRect(context, r);
}
- SKDrawResizeHandles(context, rect, [self unitWidthOnPage:pdfPage], NO,
[self drawsActiveSelections]);
+ SKDrawResizeHandles(context, NSRectFromCGRect(r), [self
unitWidthOnPage:pdfPage], NO, [self drawsActiveSelections]);
}
- (void)drawHighlights:(BOOL)drawAnnotationHighlight forPage:(PDFPage
*)pdfPage toContext:(CGContextRef)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