mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 04:28:24 +02:00
simple-touch: use proper damage in touch_paint()
Should reduce update overhead. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
0768419393
commit
76fc57e75c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue