1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 16:10:46 -08:00

Revert "Get NS screen resolution from system"

This reverts commit f3dec3439f.
This commit is contained in:
Alan Third 2023-12-31 10:28:29 +00:00
parent 348424776d
commit bbd372da53

View file

@ -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: