emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bbd372da533: Revert "Get NS screen resolution from system"


From: Alan Third
Subject: master bbd372da533: Revert "Get NS screen resolution from system"
Date: Sun, 31 Dec 2023 05:29:54 -0500 (EST)

branch: master
commit bbd372da53302daa771efe0350bf46783aba3af7
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    Revert "Get NS screen resolution from system"
    
    This reverts commit f3dec3439fd5aee885a76622f384f6c7ca67d128.
---
 src/nsterm.m | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index dbb54632add..d4b8318faef 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5265,11 +5265,8 @@ ns_initialize_display_info (struct ns_display_info 
*dpyinfo)
     NSScreen *screen = [NSScreen mainScreen];
     NSWindowDepth depth = [screen depth];
 
-    NSDictionary *dict = [screen deviceDescription];
-    NSSize res = [[dict objectForKey:@"NSDeviceResolution"] sizeValue];
-    dpyinfo->resx = res.width;
-    dpyinfo->resy = res.height;
-
+    dpyinfo->resx = 72.27; /* used 75.0, but this makes pt == pixel, expected 
*/
+    dpyinfo->resy = 72.27;
     dpyinfo->color_p = ![NSDeviceWhiteColorSpace isEqualToString:
                                                   NSColorSpaceFromDepth 
(depth)]
                 && ![NSCalibratedWhiteColorSpace isEqualToString:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]