From 76fc57e75c9d6bb16e800ae1b9927d5e9d090d2b Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 31 Jul 2012 13:21:13 +0300 Subject: [PATCH] simple-touch: use proper damage in touch_paint() Should reduce update overhead. Signed-off-by: Pekka Paalanen --- clients/simple-touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/simple-touch.c b/clients/simple-touch.c index f8afbb009..6087fe48f 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