compositor: replace weston_buffer_viewport::viewport_set
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 14 Mar 2014 12:38:16 +0000 (14:38 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 1 Apr 2014 23:46:40 +0000 (16:46 -0700)
commitf0cad4844c53d857a3b298c34bdbc9d52b56baec
tree8f245a90d3ba76f8dd1192b1d05a9fbed7eb7cc3
parent952b6c80040a258b8b0e75fef16fb564d4ff0c2c
compositor: replace weston_buffer_viewport::viewport_set

Remove the explicit boolean variable, and use illegal width to denote
"not set".

Split the boolean into two, so we can later start having buffer.src_*
and surface.* set or not set independently. This may become useful when
the wl_viewport interface is changed to allow modifying them separately.

At the moment, both buffer.src_width and surface.width conditions are
always in sync.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor.c
src/compositor.h
src/pixman-renderer.c