summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-18 17:13:36 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-18 17:13:36 -0300
commit4613b51540166c563817688683ab7cb976945a00 (patch)
treeb57735b44c01a9cb5987f294128d7a414af3cc4b /gui/render.c
parent9ce1707dff36162fc91a030befdcf8a3c2b6852d (diff)
downloadeeshow-4613b51540166c563817688683ab7cb976945a00.tar.gz
eeshow-4613b51540166c563817688683ab7cb976945a00.tar.bz2
eeshow-4613b51540166c563817688683ab7cb976945a00.zip
eeshow/gui/: use underlay to draw a nice box for glabels
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/render.c b/gui/render.c
index bbdcc94..ebdab4e 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -89,7 +89,10 @@ static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
VCS_OVERLAYS_X,
VCS_OVERLAYS_Y + (ctx->showing_history ? ctx->hist_y_offset : 0),
0, 1);
- overlay_draw_all(ctx->pop_overlays, cr, ctx->pop_x, ctx->pop_y);
+ overlay_draw_all(ctx->pop_underlays, cr, ctx->pop_x, ctx->pop_y);
+ overlay_draw_all(ctx->pop_overlays, cr,
+ ctx->pop_x + sign1(ctx->pop_x) * GLABEL_STACK_PADDING,
+ ctx->pop_y + sign1(ctx->pop_y) * GLABEL_STACK_PADDING);
return FALSE;
}