Revision: 29622
http://sourceforge.net/p/bibdesk/svn/29622
Author: hofman
Date: 2025-09-23 14:42:13 +0000 (Tue, 23 Sep 2025)
Log Message:
-----------
get backingScaleFactor from hostWindow or mainScreen when the webView is not in
a window
Modified Paths:
--------------
trunk/bibdesk/BDSKWebView.m
Modified: trunk/bibdesk/BDSKWebView.m
===================================================================
--- trunk/bibdesk/BDSKWebView.m 2025-09-23 14:06:13 UTC (rev 29621)
+++ trunk/bibdesk/BDSKWebView.m 2025-09-23 14:42:13 UTC (rev 29622)
@@ -295,7 +295,7 @@
}
if ([favicons count] > 1) {
// get favicon with the preferred size
- NSInteger preferredSize = 16 * (NSInteger)[[frame webView]
convertSizeToBacking:NSMakeSize(1.0, 1.0)].width;
+ NSInteger preferredSize = 16 * (NSInteger)[([[frame webView]
window] ?: [[frame webView] hostWindow] ?: (id)[NSScreen mainScreen])
backingScaleFactor];
for (NSDictionary *info in favicons) {
NSInteger width = [[info valueForKey:@"width"] integerValue];
if (width >= preferredSize) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit