diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-07-31 13:21:13 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-07-31 22:27:23 -0400 |
commit | 76fc57e75c9d6bb16e800ae1b9927d5e9d090d2b (patch) | |
tree | 43ef6515c88992c68aa032aabe0007dab3fc05c5 /clients/simple-touch.c | |
parent | 07684193931e98d55234e80861325f4e7e587449 (diff) | |
download | weston-76fc57e75c9d6bb16e800ae1b9927d5e9d090d2b.tar.gz |
simple-touch: use proper damage in touch_paint()
Should reduce update overhead.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'clients/simple-touch.c')
-rw-r--r-- | clients/simple-touch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/simple-touch.c b/clients/simple-touch.c index f8afbb00..6087fe48 100644 --- a/clients/simple-touch.c +++ b/clients/simple-touch.c @@ -141,7 +141,7 @@ touch_paint(struct touch *touch, int32_t x, int32_t y, int32_t id) p += touch->width; p[2] = c; - wl_surface_damage(touch->surface, 0, 0, touch->width, touch->height); + wl_surface_damage(touch->surface, x - 2, y - 2, 5, 5); } static void |