simple-touch: Use true/false instead of 1/0 for bool type
Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
This commit is contained in:
parent
5ff978a52b
commit
b94219adeb
@ -137,7 +137,7 @@ shm_format(void *data, struct wl_shm *wl_shm, uint32_t format)
|
||||
struct touch *touch = data;
|
||||
|
||||
if (format == WL_SHM_FORMAT_ARGB8888)
|
||||
touch->has_argb = 1;
|
||||
touch->has_argb = true;
|
||||
}
|
||||
|
||||
struct wl_shm_listener shm_listener = {
|
||||
@ -370,7 +370,7 @@ touch_create(int width, int height)
|
||||
touch->display = wl_display_connect(NULL);
|
||||
assert(touch->display);
|
||||
|
||||
touch->has_argb = 0;
|
||||
touch->has_argb = false;
|
||||
touch->registry = wl_display_get_registry(touch->display);
|
||||
wl_registry_add_listener(touch->registry, ®istry_listener, touch);
|
||||
wl_display_dispatch(touch->display);
|
||||
|
Loading…
Reference in New Issue
Block a user