mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Fix coding style
This commit is contained in:
parent
6a242d5739
commit
e45e2c7e60
16 changed files with 28 additions and 22 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue