From: Alan Third Date: Sun, 31 Dec 2023 10:28:29 +0000 (+0000) Subject: Revert "Get NS screen resolution from system" X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bbd372da53302daa771efe0350bf46783aba3af7;p=emacs.git Revert "Get NS screen resolution from system" This reverts commit f3dec3439fd5aee885a76622f384f6c7ca67d128. --- 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: