diff --git a/include/common/scene-helpers.h b/include/common/scene-helpers.h index 0a4a5733..477c4e6b 100644 --- a/include/common/scene-helpers.h +++ b/include/common/scene-helpers.h @@ -21,11 +21,11 @@ struct wlr_scene_node *lab_wlr_scene_get_prev_node(struct wlr_scene_node *node); bool lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output); enum magnify_dir { - MAGNIFY_INCREASE, - MAGNIFY_DECREASE + MAGNIFY_INCREASE, + MAGNIFY_DECREASE }; -void magnify_toggle (void); -void magnify_set_scale (enum magnify_dir dir); +void magnify_toggle(void); +void magnify_set_scale(enum magnify_dir dir); #endif /* LABWC_SCENE_HELPERS_H */ diff --git a/src/config/rcxml.c b/src/config/rcxml.c index cf492346..45ba03b0 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -749,10 +749,19 @@ set_adaptive_sync_mode(const char *str, enum adaptive_sync_mode *variable) static bool parse_rgb(const char *str, int *r, int *g, int *b) { int rr, rg, rb; - if (!str) return false; - if (strlen(str) != 7) return false; - if (str[0] != '#') return false; - if (sscanf(str, "#%2X%2X%2X", &rr, &rg, &rb) != 3) return false; + + if (!str) { + return false; + } + if (strlen(str) != 7) { + return false; + } + if (str[0] != '#') { + return false; + } + if (sscanf(str, "#%2X%2X%2X", &rr, &rg, &rb) != 3) { + return false; + } *r = rr; *g = rg; *b = rb;