LWN.net Logo

Retina display support

Retina display support

Posted Jan 10, 2013 2:09 UTC (Thu) by Trelane (subscriber, #56877)
In reply to: Retina display support by roc
Parent article: Firefox 18 is now available

> It would be pretty easy to extend to Linux/X11 too, except we don't know exactly which system setting(s) to observe to know when to automatically zoom.

What are you looking for exactly?

xrandr --query
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 345mm x 194mm
1920x1080 59.9*+
1400x1050 60.0
1280x1024 60.0
1280x960 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)

is this what you need (modulo actually having to run xrandr instead)?

http://developer.gnome.org/gdk3/stable/GdkScreen.html
perhaps?


(Log in to post comments)

Retina display support

Posted Jan 10, 2013 10:36 UTC (Thu) by roc (subscriber, #30627) [Link]

What we're looking for is a system setting that tells us exactly how much to scale by default. Just guessing based on the characteristics of the screen as reported by xrandr isn't enough information to ensure that, for example, our standard UI controls are the same size as the controls in other applications.

Retina display support

Posted Jan 11, 2013 1:09 UTC (Fri) by FedericoMenaQuintero (guest, #81416) [Link]

GTK+ doesn't have a special API for high-DPI devices yet. So, for now, don't do anything special - use a scale of 1.

(Your controls *will* be the same size as those in other applications, because you are using the same toolkit.)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds