From bbd372da53302daa771efe0350bf46783aba3af7 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sun, 31 Dec 2023 10:28:29 +0000 Subject: [PATCH] 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: -- 2.39.5