Detect hidpi (retina)

Find quick help here to get you started with Hollywood
Post Reply
Krzysztof
Posts: 5
Joined: Fri Nov 10, 2017 10:11 am

Detect hidpi (retina)

Post by Krzysztof »

Hello,

is there a way to detect whether the program has been launched on Retina (HiDPI) screen? I'm interested in solution for Hollywood 7.1 on macOS. I think I could prepare a plugin to get backingScaleFactor property of NSWindow class, but is there any ready solution in Hollywood?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Detect hidpi (retina)

Post by airsoftsoftwair »

Yes, you can get this information from #ATTRHOSTSCALEX and #ATTRHOSTSCALEY for #DISPLAY.
Krzysztof
Posts: 5
Joined: Fri Nov 10, 2017 10:11 am

Re: Detect hidpi (retina)

Post by Krzysztof »

Thanks!
Post Reply