Revision: 14856 http://sourceforge.net/p/skim-app/code/14856 Author: hofman Date: 2025-01-09 17:11:32 +0000 (Thu, 09 Jan 2025) Log Message: ----------- use -2.5 as default for tool tip scale, to have a maximum scale of 2.5
Modified Paths: -------------- trunk/SKImageToolTipWindow.m Modified: trunk/SKImageToolTipWindow.m =================================================================== --- trunk/SKImageToolTipWindow.m 2025-01-09 16:59:12 UTC (rev 14855) +++ trunk/SKImageToolTipWindow.m 2025-01-09 17:11:32 UTC (rev 14856) @@ -111,10 +111,11 @@ } - (void)showDelayed { - CGFloat usedScale = [[NSUserDefaults standardUserDefaults] floatForKey:SKToolTipScaleKey]; + NSNumber *usedScaleNumber = [[NSUserDefaults standardUserDefaults] objectForKey:SKToolTipScaleKey]; + CGFloat usedScale = [usedScaleNumber respondsToSelector:@selector(doubleValue)] ? [usedScaleNumber doubleValue] : -2.5; NSPoint thePoint = NSEqualPoints(point, NSZeroPoint) ? [NSEvent mouseLocation] : point; NSRect contentRect = NSZeroRect, screenRect = [[NSScreen screenForPoint:thePoint] frame]; - NSImage *image = [context toolTipImageWithScale:usedScale > 0.0 ? usedScale : usedScale < 0.0 ? fmin(scale, -usedScale) : fmin(scale, 2.5)]; + NSImage *image = [context toolTipImageWithScale:usedScale > 0.0 ? usedScale : usedScale < 0.0 ? fmin(scale, -usedScale) : scale]; 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 Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit