Revision: 14227
http://sourceforge.net/p/skim-app/code/14227
Author: hofman
Date: 2024-04-21 15:13:52 +0000 (Sun, 21 Apr 2024)
Log Message:
-----------
always use corner radius of 10, seems closer to actual radius
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2024-04-20 16:40:09 UTC (rev 14226)
+++ trunk/SKSnapshotWindowController.m 2024-04-21 15:13:52 UTC (rev 14227)
@@ -498,11 +498,8 @@
[image lockFocus];
- if (size < 0.0) {
- CGFloat r = 10.0;
- if (@available(macOS 12.0, *)) r = 12.0;
- [[NSBezierPath bezierPathWithRoundedRect:(NSRect){NSZeroPoint,
thumbnailSize} xRadius:r yRadius:r] addClip];
- }
+ if (size < 0.0)
+ [[NSBezierPath bezierPathWithRoundedRect:(NSRect){NSZeroPoint,
thumbnailSize} xRadius:10.0 yRadius:10.0] addClip];
[[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationHigh];
[transform concat];
@@ -592,9 +589,7 @@
static void roundCornersAndApplyFiltersToImageRep(NSBitmapImageRep *imageRep,
NSArray *filters, NSRect rect) {
NSRect bounds = {NSZeroPoint, [imageRep size]};
- CGFloat r = 10.0;
- if (@available(macOS 12.0, *)) r = 12.0;
- NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:bounds
xRadius:r yRadius:r];
+ NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:bounds
xRadius:10.0 yRadius:10.0];
[path appendBezierPathWithRect:bounds];
[path setWindingRule:NSEvenOddWindingRule];
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