aboutsummaryrefslogtreecommitdiff
path: root/src/slide_render.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-05-24 08:24:36 +0200
committerThomas White <taw@bitwiz.org.uk>2011-05-24 08:24:36 +0200
commit7e9854982c560a11aa7fa0eee6aa2a9f9673a9d6 (patch)
treee84c910d21f4155a3e9e5190a05fea1d772beae3 /src/slide_render.c
parent13248acdefcaa88d88cb9ef493ab3e9602abc658 (diff)
Text insertion machinery
Diffstat (limited to 'src/slide_render.c')
-rw-r--r--src/slide_render.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slide_render.c b/src/slide_render.c
index 33eee36..ab656be 100644
--- a/src/slide_render.c
+++ b/src/slide_render.c
@@ -47,6 +47,10 @@ static void render_text_object(cairo_t *cr, struct object *o)
pango_cairo_update_layout(cr, l);
pango_layout_get_size(l, &width, &height);
+
+ o->bb_width = width/PANGO_SCALE;
+ o->bb_height = height/PANGO_SCALE;
+
cairo_move_to(cr, o->x - (width/PANGO_SCALE)/2.0,
o->y - (height/PANGO_SCALE)/2.0);