Fix coding style

This commit is contained in:
Johan Malm 2022-11-03 19:58:21 +00:00 committed by Consolatis
parent 6a242d5739
commit e45e2c7e60
16 changed files with 28 additions and 22 deletions

View file

@ -36,6 +36,7 @@ restore_nofile_limit(void)
}
if (setrlimit(RLIMIT_NOFILE, &original_nofile_rlimit) != 0) {
wlr_log_errno(WLR_ERROR, "Failed to restore max open files limit: setrlimit(NOFILE) failed");
wlr_log_errno(WLR_ERROR,
"Failed to restore max open files limit: setrlimit(NOFILE) failed");
}
}

View file

@ -68,7 +68,8 @@ draw_cairo_border(cairo_t *cairo, double width, double height, double line_width
double x, y, w, h;
/* The anchor point of a line is in the center */
x = y = line_width / 2;
x = line_width / 2;
y = x;
w = width - line_width;
h = height - line_width;
cairo_set_line_width(cairo, line_width);

View file

@ -47,8 +47,8 @@ scaled_font_buffer_create(struct wlr_scene_tree *parent)
{
assert(parent);
struct scaled_font_buffer *self = znew(*self);
struct scaled_scene_buffer *scaled_buffer
= scaled_scene_buffer_create(parent, &impl);
struct scaled_scene_buffer *scaled_buffer =
scaled_scene_buffer_create(parent, &impl);
if (!scaled_buffer) {
free(self);
return NULL;