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/slide_render_cairo.c | |
parent | fd60b77df51cb24c33440ab7d9afe8043f9e43db (diff) |
Use slide size from stylesheet when appropriate
Diffstat (limited to 'libstorycode/slide_render_cairo.c')
-rw-r--r-- | libstorycode/slide_render_cairo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstorycode/slide_render_cairo.c b/libstorycode/slide_render_cairo.c index 307b4d4..ed9b948 100644 --- a/libstorycode/slide_render_cairo.c +++ b/libstorycode/slide_render_cairo.c @@ -192,10 +192,13 @@ int slide_render_cairo(Slide *s, cairo_t *cr, ImageStore *is, Stylesheet *styles double bgcol[4]; double bgcol2[4]; cairo_pattern_t *patt = NULL; + double w, h; r = stylesheet_get_background(stylesheet, STYEL_SLIDE, &bg, bgcol, bgcol2); if ( r ) return 1; + slide_get_logical_size(s, stylesheet, &w, &h); + /* Overall background */ cairo_rectangle(cr, 0.0, 0.0, s->logical_w, s->logical_h); switch ( bg ) { |