Revision: 16121
http://sourceforge.net/p/skim-app/code/16121
Author: hofman
Date: 2026-03-27 18:00:14 +0000 (Fri, 27 Mar 2026)
Log Message:
-----------
draw in correct rect
Modified Paths:
--------------
trunk/NSImage_SKExtensions.m
Modified: trunk/NSImage_SKExtensions.m
===================================================================
--- trunk/NSImage_SKExtensions.m 2026-03-27 16:56:53 UTC (rev 16120)
+++ trunk/NSImage_SKExtensions.m 2026-03-27 18:00:14 UTC (rev 16121)
@@ -1392,13 +1392,13 @@
MAKE_IMAGE(SKImageNameNotesPreferences, NO, 32.0, 32.0,
NSImage *clippingImage = [[NSWorkspace sharedWorkspace]
iconForFileType:NSFileTypeForHFSTypeCode(kClippingTextType)];
- NSImage *tmpImage = [NSImage imageWithSize:NSMakeSize(28.0, 32.0)
drawingHandler:^(NSRect r1){
+ NSImage *tmpImage = [NSImage imageWithSize:NSMakeSize(28.0, 32.0)
flipped:NO drawingHandler:^(NSRect r1){
NSGradient *gradient = [[NSGradient alloc]
initWithStartingColor:[NSColor colorWithSRGBRed:1.0 green:0.939 blue:0.495
alpha:1.0] endingColor:[NSColor colorWithSRGBRed:1.0 green:0.976 blue:0.810
alpha:1.0]];
[[NSColor blackColor] setFill];
[NSBezierPath fillRect:r1];
[clippingImage drawInRect:r1];
[[NSGraphicsContext currentContext]
setCompositingOperation:NSCompositingOperationMultiply];
- [gradient drawInRect:NSMakeRect(2.0, 0.0, 28.0, 32.0) angle:90.0];
+ [gradient drawInRect:r1 angle:90.0];
return YES;
}];
[clippingImage drawInRect:NSMakeRect(2.0, 0.0, 28.0, 32.0)
fromRect:NSZeroRect operation:NSCompositingOperationSourceOver fraction:1.0];
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