projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0768419
)
simple-touch: use proper damage in touch_paint()
author
Pekka Paalanen
<ppaalanen@gmail.com>
Tue, 31 Jul 2012 10:21:13 +0000
(13:21 +0300)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 1 Aug 2012 02:27:23 +0000
(22:27 -0400)
Should reduce update overhead.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/simple-touch.c
patch
|
blob
|
history
diff --git
a/clients/simple-touch.c
b/clients/simple-touch.c
index
f8afbb0
..
6087fe4
100644
(file)
--- 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