wayland: Make sure we're initializing output scale sensibly

Desktop / Enlightenment / Enlightenment - Bryce Harrington [osg.samsung.com] - 27 February 2015 18:45 UTC

Summary: By default the E_NEW() will create our output objects with a 0.0 scale, which doesn't make any sense and if anything will lead to crashes. Instead use a scale factor of 1.0.

When updating output details, if the scale setting is invalid then set it to 1.0 as a sensible value.

Note this doesn't actually enable scaling, just helps make sure we're not injecting invalid scale parameters from the start.

Reviewers: zmike, devilhorns, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2078

f92e241 wayland: Make sure we're initializing output scale sensibly
src/bin/e_comp_wl.c | 4 ++++
1 file changed, 4 insertions(+)

Upstream: git.enlightenment.org


  • Share