simple-touch: use proper damage in touch_paint()

Should reduce update overhead.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Pekka Paalanen 12 years ago committed by Kristian Høgsberg
parent 0768419393
commit 76fc57e75c
  1. 2
      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

Loading…
Cancel
Save