diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-26 19:57:41 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-26 19:57:41 +0100 |
commit | 36a4bd7229a562d414513073d1123080b9615cd9 (patch) | |
tree | c473b435ca1165b69519f02ad9a5b8eafe693ef7 /libstorycode/stylesheet.c | |
parent | fd60b77df51cb24c33440ab7d9afe8043f9e43db (diff) |
Use slide size from stylesheet when appropriate
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r-- | libstorycode/stylesheet.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c index 5d40f4b..0002859 100644 --- a/libstorycode/stylesheet.c +++ b/libstorycode/stylesheet.c @@ -144,6 +144,15 @@ static struct style *get_style(Stylesheet *s, enum style_element el) } +int stylesheet_get_slide_default_size(Stylesheet *s, double *w, double *h) +{ + if ( s == NULL ) return 1; + *w = s->default_slide_w; + *h = s->default_slide_h; + return 0; +} + + int stylesheet_set_slide_default_size(Stylesheet *s, double w, double h) { if ( s == NULL ) return 1; |