Revision: 14639
http://sourceforge.net/p/skim-app/code/14639
Author: hofman
Date: 2024-11-05 10:14:12 +0000 (Tue, 05 Nov 2024)
Log Message:
-----------
don't set round line join for Help icon
Modified Paths:
--------------
trunk/SkimNotes/SKNPDFAnnotationNote.m
Modified: trunk/SkimNotes/SKNPDFAnnotationNote.m
===================================================================
--- trunk/SkimNotes/SKNPDFAnnotationNote.m 2024-11-04 20:37:23 UTC (rev
14638)
+++ trunk/SkimNotes/SKNPDFAnnotationNote.m 2024-11-05 10:14:12 UTC (rev
14639)
@@ -248,7 +248,7 @@
[NSGraphicsContext restoreGraphicsState];
CGContextRestoreGState(context);
#if !defined(MAC_OS_X_VERSION_10_15) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_15
- } else if ([self hasAppearanceStream] == NO &&
floor(NSAppKitVersionNumber) <= SKNAppKitVersionNumber10_14 &&
floor(NSAppKitVersionNumber) >= SKNAppKitVersionNumber10_12) {
+ } else if ([self hasAppearanceStream] == NO /*&&
floor(NSAppKitVersionNumber) <= SKNAppKitVersionNumber10_14*/ &&
floor(NSAppKitVersionNumber) >= SKNAppKitVersionNumber10_12) {
// on 10.12 through 10.14 draws based on the type rather than the
/Subtype
// as PDFKit does not know type Note we need to draw ourselves
// type Text does just draws a dumb filled square anyway
@@ -374,7 +374,6 @@
static inline void drawIconHelp(CGContextRef context, NSRect bounds) {
bounds = NSInsetRect(bounds, 0.5, 0.5);
CGFloat x = NSMinX(bounds), y = NSMinY(bounds), w = NSWidth(bounds), h =
NSHeight(bounds);
- CGContextSetLineJoin(context, kCGLineJoinRound);
CGContextMoveToPoint(context, x + 0.275 * w, y + 0.65 * h);
CGContextAddCurveToPoint(context, x + 0.275 * w, y + (0.65 + 0.225 *
KAPPA) * h, x + (0.5 - 0.225 * KAPPA) * w, y + 0.875 * h, x + 0.5 * w, y +
0.875 * h);
CGContextAddCurveToPoint(context, x + (0.5 + 0.225 * KAPPA) * w, y + 0.875
* h, x + 0.725 * w, y + (0.65 + 0.225 * KAPPA) * h, x + 0.725 * w, y + 0.65 *
h);
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