Revision: 14281
http://sourceforge.net/p/skim-app/code/14281
Author: hofman
Date: 2024-05-31 16:37:56 +0000 (Fri, 31 May 2024)
Log Message:
-----------
Use window backingScaleFactor for snapshot used by animation
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2024-05-31 16:03:17 UTC (rev 14280)
+++ trunk/SKSnapshotWindowController.m 2024-05-31 16:37:56 UTC (rev 14281)
@@ -477,6 +477,7 @@
NSSize thumbnailSize = bounds.size;
CGFloat shadowBlurRadius = 0.0;
CGFloat shadowOffset = 0.0;
+ CGFloat scale = 0.0;
NSImage *image;
if (size > 0.0) {
@@ -490,12 +491,13 @@
[transform scaleXBy:(thumbnailSize.width - 2.0 * shadowBlurRadius) /
NSWidth(bounds) yBy:(thumbnailSize.height - 2.0 * shadowBlurRadius) /
NSHeight(bounds)];
} else if (size < 0.0) {
thumbnailSize = [[self window] frame].size;
+ scale = [[self window] backingScaleFactor];
}
if (size >= 0.0 && NSEqualPoints(bounds.origin, NSZeroPoint) == NO)
[transform translateXBy:-NSMinX(bounds) yBy:-NSMinY(bounds)];
- image = [NSImage bitmapImageWithSize:thumbnailSize scale:0.0
drawingHandler:^(NSRect dstRect){
+ image = [NSImage bitmapImageWithSize:thumbnailSize scale:scale
drawingHandler:^(NSRect dstRect){
if (size < 0.0)
[[NSBezierPath bezierPathWithRoundedRect:(NSRect){NSZeroPoint,
thumbnailSize} xRadius:10.0 yRadius:10.0] addClip];
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