Revision: 14854
          http://sourceforge.net/p/skim-app/code/14854
Author:   hofman
Date:     2025-01-08 23:26:45 +0000 (Wed, 08 Jan 2025)
Log Message:
-----------
Don't scale preview tool tip more than 4x

Modified Paths:
--------------
    trunk/SKImageToolTipWindow.m

Modified: trunk/SKImageToolTipWindow.m
===================================================================
--- trunk/SKImageToolTipWindow.m        2025-01-06 09:42:15 UTC (rev 14853)
+++ trunk/SKImageToolTipWindow.m        2025-01-08 23:26:45 UTC (rev 14854)
@@ -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 : scale];
+    NSImage *image = [context toolTipImageWithScale:usedScale > 0.0 ? 
usedScale : fmin(scale, 4.0)];
     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

Reply via email to