compositor: simplify weston_surface_damage_rectangle()
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 9 Feb 2012 13:27:45 +0000 (15:27 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Fri, 10 Feb 2012 13:47:56 +0000 (15:47 +0200)
commit1d5035c705b524aed21233bd46515dc66c0c2fb4
tree18160fc9a64e04456136c2768df2044b3334c938
parent219b982ed076d3f0bb9a6199509fb260b8fe8b26
compositor: simplify weston_surface_damage_rectangle()

The non-transformed case looked a little odd, calling
weston_surface_to_global(), since it already tests for transform.enabled
and simply uses width, height for the box.

Streamline it, by open-coding weston_surface_to_global(), and avoiding
another call into weston_surface_update_transform(). This way it does
not look suspicious to me.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c