compositor: let update_transform deal damage
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 9 Feb 2012 13:32:15 +0000 (15:32 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Fri, 10 Feb 2012 13:47:56 +0000 (15:47 +0200)
commit965167807000f1b6885a725579e57c0b8ad5c10d
treebf8517c8b97eea26d1cbc3c207d5bce35d91fb9b
parent1d5035c705b524aed21233bd46515dc66c0c2fb4
compositor: let update_transform deal damage

weston_surface_update_transform() is similar to
weston_surface_configure() in that it changes the surface region on
screen. Unlike configure, update_transform forgets to deal damage at
all, yet it is the only place where we can do damage_below() as needed.

Add a damage_below call to deal damage for the old surface region only
when needed. This uses the cached state from surface->transform to get
the old region.

Add a damage call to deal damage for the new surface region, after
updating the cached state.

Add a repaint call, since we have changed the scene and should render it
out.

This change fixes the rotation not updating the screen properly.

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