From dfda59ad188f60acbc0e184aeca28a38f0649446 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 2 Nov 2014 06:59:07 +0200 Subject: [PATCH] Better list margin. --- lib/renderers/cairo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/renderers/cairo.h b/lib/renderers/cairo.h index 26cf3c2..7eb5bd1 100644 --- a/lib/renderers/cairo.h +++ b/lib/renderers/cairo.h @@ -170,12 +170,12 @@ bm_cairo_paint(struct cairo *cairo, uint32_t width, uint32_t height, const struc } if (menu->prefix && highlighted) { - paint.pos = (struct pos){ 4, 2 + (paint.fe.height + 4) * cl++ }; + paint.pos = (struct pos){ 0, 2 + (paint.fe.height + 4) * cl++ }; paint.box = (struct box){ 4, 0, 2, 2, width - paint.pos.x, 0 }; bm_cairo_draw_line(cairo, &paint, &result, "%s %s", menu->prefix, (items[i]->text ? items[i]->text : "")); } else { - paint.pos = (struct pos){ 4 + start_x, 2 + (paint.fe.height + 4) * cl++ }; - paint.box = (struct box){ 4, 0, 2, 2, width - paint.pos.x, 0 }; + paint.pos = (struct pos){ 0, 2 + (paint.fe.height + 4) * cl++ }; + paint.box = (struct box){ 4 + start_x, 0, 2, 2, width - paint.pos.x, 0 }; bm_cairo_draw_line(cairo, &paint, &result, "%s", (items[i]->text ? items[i]->text : "")); }