Output modes and scaling

John Kåre Alsaker john.kare.alsaker at gmail.com
Thu May 23 08:39:10 PDT 2013


I see Alexander Larsson added a scaled flag to the output modes. Presumably
this is because he scales down the width and height of the mode by the
scaling factor of the output.

This probably shouldn't be done. The scaling factor only works for the
current mode. It isn't representative for the other available modes.

The mode list is probably supposed to be used by games which can't render
at the native resolution and picks one of those instead. Games going
fullscreen using these resolutions will usually fill the screen, making
further attempt at scaling up useless.

When a client tries to go fullscreen it will get a configure event with a
request for width and height. Those dimensions should be scaled down
instead of the output modes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130523/1ebf8ccf/attachment.html>


More information about the wayland-devel mailing list