diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-25 21:54:40 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-25 22:16:19 +0100 |
commit | 52d08227913e4cbbc593ed2ccb066ee29e4e33c9 (patch) | |
tree | 68d758a390c7555b229cf704339b5b6163a2b835 /libstorycode/slide.c | |
parent | b9c16eb6d903ab809b340d404139dcaa1872ea9c (diff) |
Use text alignment
Diffstat (limited to 'libstorycode/slide.c')
-rw-r--r-- | libstorycode/slide.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libstorycode/slide.c b/libstorycode/slide.c index ca40347..4ee02c9 100644 --- a/libstorycode/slide.c +++ b/libstorycode/slide.c @@ -89,7 +89,8 @@ int slide_add_image(Slide *s, char *filename, struct frame_geom geom) } -int slide_add_text(Slide *s, char **text, int n_text, struct frame_geom geom) +int slide_add_text(Slide *s, char **text, int n_text, struct frame_geom geom, + enum alignment alignment) { int i; struct slide_item *item; @@ -111,7 +112,7 @@ int slide_add_text(Slide *s, char **text, int n_text, struct frame_geom geom) item->n_paras = n_text; item->geom = geom; - item->align = ALIGN_LEFT; + item->align = alignment; return 0; } |