Skip to content

Improve macOS screen info reporting#75

Open
florin-pop wants to merge 3 commits intorr-:masterfrom
florin-pop:master
Open

Improve macOS screen info reporting#75
florin-pop wants to merge 3 commits intorr-:masterfrom
florin-pop:master

Conversation

@florin-pop
Copy link

The current version of screeninfo (0.8.1) was not reporting the screen size in mm of my monitor on macOS Ventura:

[Monitor(x=0, y=0, width=1920, height=1080, width_mm=None, height_mm=None, name=None, is_primary=True)]

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant