tests: change type of int buffer_copy_done to bool
The 'struct test' has a field 'int buffer_copy_done', but it is in a fact a boolean. Change it to 'bool buffer_copy_done'. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
6b4d48736f
commit
6c7dc70d86
@@ -545,7 +545,7 @@ test_handle_capture_screenshot_done(void *data, struct weston_test *weston_test)
|
|||||||
struct test *test = data;
|
struct test *test = data;
|
||||||
|
|
||||||
testlog("Screenshot has been captured\n");
|
testlog("Screenshot has been captured\n");
|
||||||
test->buffer_copy_done = 1;
|
test->buffer_copy_done = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct weston_test_listener test_listener = {
|
static const struct weston_test_listener test_listener = {
|
||||||
@@ -1618,11 +1618,11 @@ capture_screenshot_of_output(struct client *client)
|
|||||||
client->output->width,
|
client->output->width,
|
||||||
client->output->height);
|
client->output->height);
|
||||||
|
|
||||||
client->test->buffer_copy_done = 0;
|
client->test->buffer_copy_done = false;
|
||||||
weston_test_capture_screenshot(client->test->weston_test,
|
weston_test_capture_screenshot(client->test->weston_test,
|
||||||
client->output->wl_output,
|
client->output->wl_output,
|
||||||
buffer->proxy);
|
buffer->proxy);
|
||||||
while (client->test->buffer_copy_done == 0)
|
while (client->test->buffer_copy_done == false)
|
||||||
if (wl_display_dispatch(client->wl_display) < 0)
|
if (wl_display_dispatch(client->wl_display) < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ struct test {
|
|||||||
int pointer_x;
|
int pointer_x;
|
||||||
int pointer_y;
|
int pointer_y;
|
||||||
uint32_t n_egl_buffers;
|
uint32_t n_egl_buffers;
|
||||||
int buffer_copy_done;
|
bool buffer_copy_done;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct input {
|
struct input {
|
||||||
|
|||||||
Reference in New Issue
Block a user