Revision: 14855
http://sourceforge.net/p/skim-app/code/14855
Author: hofman
Date: 2025-01-09 16:59:12 +0000 (Thu, 09 Jan 2025)
Log Message:
-----------
Set max preview scale factor to 2.5. Set max scale factor when hidden pref for
it is negative.
Modified Paths:
--------------
trunk/SKImageToolTipWindow.m
Modified: trunk/SKImageToolTipWindow.m
===================================================================
--- trunk/SKImageToolTipWindow.m 2025-01-08 23:26:45 UTC (rev 14854)
+++ trunk/SKImageToolTipWindow.m 2025-01-09 16:59:12 UTC (rev 14855)
@@ -114,7 +114,7 @@
CGFloat usedScale = [[NSUserDefaults standardUserDefaults]
floatForKey:SKToolTipScaleKey];
NSPoint thePoint = NSEqualPoints(point, NSZeroPoint) ? [NSEvent
mouseLocation] : point;
NSRect contentRect = NSZeroRect, screenRect = [[NSScreen
screenForPoint:thePoint] frame];
- NSImage *image = [context toolTipImageWithScale:usedScale > 0.0 ?
usedScale : fmin(scale, 4.0)];
+ NSImage *image = [context toolTipImageWithScale:usedScale > 0.0 ?
usedScale : usedScale < 0.0 ? fmin(scale, -usedScale) : fmin(scale, 2.5)];
BOOL isOpaque = [[[image representations] firstObject] isOpaque];
if (image) {
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