[PATCH 00/15] weston scaling support
Bill Spitzak
spitzak at gmail.com
Tue May 28 18:33:25 PDT 2013
On 05/28/2013 06:40 AM, Pekka Paalanen wrote:
> If you really need an output scaling factor like 1.5, then you report it
> as either 1 or 2, and do a compensating scaling in the compositor to
> achieve 1.5. That is the best compromize I can imagine, since to be
> honest, 1.5 does not work for the protocol nor the clients' rendering.
Then it is impossible for the client to render 1:1 with this output's
pixels. All it can do is set the scale to 1 and have it scaled up by 1.5
to get the output pixels, or set the scale to 2 and have it scaled down
to .75 to get the pixels.
I don't think you can avoid non-integer scaling. What happens if a
client says it's scale is 3 and the output has a scale of 2? This is not
just hypothetical, it will certainly happen if there is both a scale 3
and scale 2 output on the device.
More information about the wayland-devel
mailing list