summaryrefslogtreecommitdiff
path: root/lib/renderers/cairo.h
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2014-11-02 06:59:07 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2014-11-02 06:59:07 +0200
commitdfda59ad188f60acbc0e184aeca28a38f0649446 (patch)
tree95be460487f11278bb42993e91dfd41d881e2ffe /lib/renderers/cairo.h
parent0d5cdc2c962179bfbfb04ba1f87a4be7d6e44913 (diff)
downloadbemenu-dfda59ad188f60acbc0e184aeca28a38f0649446.tar.gz
bemenu-dfda59ad188f60acbc0e184aeca28a38f0649446.tar.bz2
bemenu-dfda59ad188f60acbc0e184aeca28a38f0649446.zip
Better list margin.
Diffstat (limited to 'lib/renderers/cairo.h')
-rw-r--r--lib/renderers/cairo.h6
1 files 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 : ""));
}