This PR uses a different API on macOS to detect the monitor size in mm and scale (which is 2 or 3 for retina displays). The size in mm is used to calculate ppmm which can be converted to ppi for use in applications that require conversions from pixels to real world measurement units.
The current version of screeninfo (0.8.1) was not reporting the screen size in mm of my monitor on macOS Ventura:
This PR uses a different API on macOS to detect the monitor size in
mm
andscale
(which is 2 or 3 for retina displays). The size in mm is used to calculateppmm
which can be converted toppi
for use in applications that require conversions from pixels to real world measurement units.