From 43c7078ccc5d45ee8030d91f7157cc9e8d674ffc Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Sun, 22 Apr 2018 11:48:38 +0300 Subject: [PATCH] Break down long function prototypes --- src/draw.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/draw.c b/src/draw.c index 10bc051..ad389b6 100644 --- a/src/draw.c +++ b/src/draw.c @@ -391,7 +391,15 @@ static int layout_get_height(colored_layout *cl) return MAX(h, h_icon); } -static cairo_surface_t *render_background(cairo_surface_t *srf, colored_layout *cl, colored_layout *cl_next, int y, int width, int height, bool first, bool last, int *ret_width) +static cairo_surface_t *render_background(cairo_surface_t *srf, + colored_layout *cl, + colored_layout *cl_next, + int y, + int width, + int height, + bool first, + bool last, + int *ret_width) { int x = 0; @@ -481,7 +489,12 @@ static void render_content(cairo_t *c, colored_layout *cl, int width) } -static struct dimensions layout_render(cairo_surface_t *srf, colored_layout *cl, colored_layout *cl_next, struct dimensions dim, bool first, bool last) +static struct dimensions layout_render(cairo_surface_t *srf, + colored_layout *cl, + colored_layout *cl_next, + struct dimensions dim, + bool first, + bool last) { const int cl_h = layout_get_height(cl);