aboutsummaryrefslogtreecommitdiff
path: root/examples/rotation.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-21 17:07:25 +0100
committerGitHub <noreply@github.com>2018-01-21 17:07:25 +0100
commit79f2c8719364529056229b99bf9e49a994699fe7 (patch)
tree1ed3838eb14d897ee67be35f7ab4045c0108d1fe /examples/rotation.c
parent1fbd6cb0f0a517188aa17b57c3e116619d50f0bd (diff)
parent47eb478c35b109f520323af5013d47ad7ddc0824 (diff)
Merge pull request #574 from jsshandle/master
Improve code style in accordance with CONTRIBUTING.md
Diffstat (limited to 'examples/rotation.c')
-rw-r--r--examples/rotation.c8
1 files changed, 6 insertions, 2 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) {