summaryrefslogtreecommitdiff
path: root/gui-over.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-04 20:35:41 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-04 20:35:41 -0300
commit31e2b24f0ee0303ccf1eb70829a3e7d5acf18821 (patch)
tree4139e3410f2ec019e2b1920ead68412ad0f47c38 /gui-over.c
parentc8bb9b110557989f95269e3582624977e4069d19 (diff)
downloadeeshow-31e2b24f0ee0303ccf1eb70829a3e7d5acf18821.tar.gz
eeshow-31e2b24f0ee0303ccf1eb70829a3e7d5acf18821.tar.bz2
eeshow-31e2b24f0ee0303ccf1eb70829a3e7d5acf18821.zip
eeshow/: if sheet is in repo, retrieve history, display in GUI on Up/Down (WIP)
This isn't useful yet.
Diffstat (limited to 'gui-over.c')
-rw-r--r--gui-over.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui-over.c b/gui-over.c
index baedf98..55d3f13 100644
--- a/gui-over.c
+++ b/gui-over.c
@@ -64,7 +64,7 @@ static void rrect(cairo_t *cr, int x, int y, int w, int h, int r)
}
-static void overlay_draw(struct overlay *over, cairo_t *cr, int *x, int *y)
+struct overlay *overlay_draw(struct overlay *over, cairo_t *cr, int *x, int *y)
{
cairo_text_extents_t ext;
int w, h;
@@ -103,7 +103,9 @@ static void overlay_draw(struct overlay *over, cairo_t *cr, int *x, int *y)
over->aoi = aoi_add(over->aois, &aoi);
}
- *y += ext.height + OVER_SEP;
+ *y += h + OVER_SEP;
+
+ return over->next;
}