commit | 76fc57e75c9d6bb16e800ae1b9927d5e9d090d2b | [log] [tgz] |
---|---|---|
author | Pekka Paalanen <ppaalanen@gmail.com> | Tue Jul 31 13:21:13 2012 +0300 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Tue Jul 31 22:27:23 2012 -0400 |
tree | 43ef6515c88992c68aa032aabe0007dab3fc05c5 | |
parent | 07684193931e98d55234e80861325f4e7e587449 [diff] [blame] |
simple-touch: use proper damage in touch_paint() Should reduce update overhead. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/clients/simple-touch.c b/clients/simple-touch.c index f8afbb0..6087fe4 100644 --- a/clients/simple-touch.c +++ b/clients/simple-touch.c
@@ -141,7 +141,7 @@ 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