diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 15:09:33 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 15:09:33 -0500 |
commit | 7474f005917fbb98cad08e8078c1da0c27742174 (patch) | |
tree | 276559dbe3c24ecc6626258132666ae736427a36 /examples | |
parent | 61bd79200cc3892b143b7321886db77e97c9f69f (diff) | |
parent | 79f2c8719364529056229b99bf9e49a994699fe7 (diff) | |
download | wlroots-7474f005917fbb98cad08e8078c1da0c27742174.tar.xz |
Merge branch 'master' into decorations
Diffstat (limited to 'examples')
-rw-r--r-- | examples/rotation.c | 8 | ||||
-rw-r--r-- | examples/screenshot.c | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/examples/rotation.c b/examples/rotation.c index 1d974025..6ec6b439 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -64,8 +64,12 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts odata->x_offs += odata->x_vel * seconds; odata->y_offs += odata->y_vel * seconds; - if (odata->x_offs > 128) odata->x_offs = 0; - if (odata->y_offs > 128) odata->y_offs = 0; + if (odata->x_offs > 128) { + odata->x_offs = 0; + } + if (odata->y_offs > 128) { + odata->y_offs = 0; + } } static void handle_output_add(struct output_state *output) { diff --git a/examples/screenshot.c b/examples/screenshot.c index 441d8684..529af38f 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -277,8 +277,9 @@ int main(int argc, char *argv[]) { screenshooter, output->output, output->buffer); orbital_screenshot_add_listener(screenshot, &screenshot_listener, screenshot); buffer_copy_done = 0; - while (!buffer_copy_done) + while (!buffer_copy_done) { wl_display_roundtrip(display); + } } write_image("wayland-screenshot.png", width, height); |