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 » Thu Dec 27, 2018 1:18 pm

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: 3027
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Detect hidpi (retina)

Post by airsoftsoftwair » Thu Dec 27, 2018 2:37 pm

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 » Thu Dec 27, 2018 3:19 pm

Thanks!

Post Reply