ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
412 stars 85 forks source link

Enumerate available display configurations on Darwin #22

Closed nabijaczleweli closed 5 years ago

nabijaczleweli commented 5 years ago

Couldn't find any relevant funxion in the Quartz/Carbon API but it's late and I'm tired so

nabijaczleweli commented 5 years ago

https://developer.apple.com/documentation/coregraphics/1455537-cgdisplaycopyalldisplaymodes?language=objc

nabijaczleweli commented 5 years ago

hey @arthurbiancarelli, mind running the system example on current master?

arthurbiancarelli commented 5 years ago

Hey, I just run the example, here the report: https://pastebin.com/raVHhiHp

nabijaczleweli commented 5 years ago

Thanks! This seems pretty in line with what I'd expect, I guess? Now, if only Quartz supported refresh rates sensibly…

nabijaczleweli commented 5 years ago

Released in v0.2.1

arthurbiancarelli commented 5 years ago

Yes, everything seems coherent even if it's too bad for the refresh rate.. I'll try with an external display I'll do a bit more research but it doesn't seem easy to get this value on Mac machines