Fix indentation
This commit is contained in:
parent
16e38a9a84
commit
dbbaecfd1d
30
src/draw.c
30
src/draw.c
@ -464,25 +464,25 @@ static cairo_surface_t *render_background(cairo_surface_t *srf,
|
|||||||
else
|
else
|
||||||
height += settings.separator_height;
|
height += settings.separator_height;
|
||||||
|
|
||||||
if (settings.frame_width > 0)
|
if (settings.frame_width > 0)
|
||||||
{
|
{
|
||||||
cairo_set_source_rgb(c, cl->frame.r, cl->frame.g, cl->frame.b);
|
cairo_set_source_rgb(c, cl->frame.r, cl->frame.g, cl->frame.b);
|
||||||
draw_rounded_rect(c, x, y, width, height, corner_radius, first, last);
|
draw_rounded_rect(c, x, y, width, height, corner_radius, first, last);
|
||||||
cairo_fill(c);
|
cairo_fill(c);
|
||||||
|
|
||||||
/* adding frame */
|
/* adding frame */
|
||||||
x += settings.frame_width;
|
x += settings.frame_width;
|
||||||
if (first) {
|
if (first) {
|
||||||
y += settings.frame_width;
|
y += settings.frame_width;
|
||||||
height -= settings.frame_width;
|
height -= settings.frame_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
width -= 2 * settings.frame_width;
|
width -= 2 * settings.frame_width;
|
||||||
|
|
||||||
if (last)
|
if (last)
|
||||||
height -= settings.frame_width;
|
height -= settings.frame_width;
|
||||||
else
|
else
|
||||||
height -= settings.separator_height;
|
height -= settings.separator_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
cairo_set_source_rgb(c, cl->bg.r, cl->bg.g, cl->bg.b);
|
cairo_set_source_rgb(c, cl->bg.r, cl->bg.g, cl->bg.b);
|
||||||
|
@ -110,9 +110,9 @@ static void x_win_round_corners(struct window_x11 *win, const int rad)
|
|||||||
|
|
||||||
/* To mark all pixels, which should get exposed, we
|
/* To mark all pixels, which should get exposed, we
|
||||||
* use a circle for every corner and two overlapping rectangles */
|
* use a circle for every corner and two overlapping rectangles */
|
||||||
int fw = settings.frame_width / 2 + settings.frame_width % 2;
|
int fw = settings.frame_width / 2 + settings.frame_width % 2;
|
||||||
if (fw < 1)
|
if (fw < 1)
|
||||||
fw=1;
|
fw=1;
|
||||||
unsigned const int centercoords[] = {
|
unsigned const int centercoords[] = {
|
||||||
-fw, -fw,
|
-fw, -fw,
|
||||||
width - dia - 1, -fw,
|
width - dia - 1, -fw,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user