Revision: 14615
http://sourceforge.net/p/skim-app/code/14615
Author: hofman
Date: 2024-10-30 17:38:28 +0000 (Wed, 30 Oct 2024)
Log Message:
-----------
use graphicsPort when supporting older OS versions
Modified Paths:
--------------
trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
Modified: trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
===================================================================
--- trunk/SkimNotes/PDFAnnotation_SKNExtensions.m 2024-10-30 17:33:01 UTC
(rev 14614)
+++ trunk/SkimNotes/PDFAnnotation_SKNExtensions.m 2024-10-30 17:38:28 UTC
(rev 14615)
@@ -223,11 +223,13 @@
[transform rotateByDegrees:[page rotation]];
[transform concat];
#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_12
- if ([annotation respondsToSelector:@selector(drawWithBox:inContext:)] ==
NO)
+ if ([annotation respondsToSelector:@selector(drawWithBox:inContext:)])
+ [annotation drawWithBox:kPDFDisplayBoxMediaBox
inContext:[[NSGraphicsContext currentContext] graphicsPort]];
+ else
[annotation drawWithBox:kPDFDisplayBoxMediaBox];
- else
+#else
+ [annotation drawWithBox:kPDFDisplayBoxMediaBox
inContext:[[NSGraphicsContext currentContext] CGContext]];
#endif
- [annotation drawWithBox:kPDFDisplayBoxMediaBox
inContext:[[NSGraphicsContext currentContext] CGContext]];
[image unlockFocus];
if (needsRemove)
[page removeAnnotation:annotation];
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