From 7043af2e64b15a7f85fa6088bd01a2f01c8f360e Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Sun, 22 Apr 2018 11:17:21 +0300 Subject: [PATCH] Rename h variable to more descriptive name Rename h to cl_h. --- src/draw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/draw.c b/src/draw.c index d3edd0a..1ccf563 100644 --- a/src/draw.c +++ b/src/draw.c @@ -477,12 +477,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) { - const int h = layout_get_height(cl); + const int cl_h = layout_get_height(cl); int h_text = 0; pango_layout_get_pixel_size(cl->l, NULL, &h_text); - int bg_height = MAX(settings.notification_height, (2 * settings.padding) + h); + int bg_height = MAX(settings.notification_height, (2 * settings.padding) + cl_h); cairo_surface_t *content = render_background(srf, cl, cl_next, dim.y, dim.w, bg_height, first, last); cairo_t *c = cairo_create(content); @@ -497,8 +497,8 @@ static struct dimensions layout_render(cairo_surface_t *srf, colored_layout *cl, dim.y += settings.separator_height; - if (settings.notification_height <= (2 * settings.padding) + h) - dim.y += h + 2 * settings.padding; + if (settings.notification_height <= (2 * settings.padding) + cl_h) + dim.y += cl_h + 2 * settings.padding; else dim.y += settings.notification_height;