aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/presentation.c')
-rw-r--r--src/presentation.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/presentation.c b/src/presentation.c
index c3f0d07..1aa126a 100644
--- a/src/presentation.c
+++ b/src/presentation.c
@@ -228,7 +228,16 @@ SCBlock *prev_slide(struct presentation *p, SCBlock *sl)
static void set_slide_size_from_stylesheet(struct presentation *p)
{
- /* FIXME: From JSON */
+ char *result;
+
+ result = stylesheet_lookup(p->stylesheet, "$.slide.size");
+ if ( result != NULL ) {
+ float v[2];
+ if ( parse_double(result, v) == 0 ) {
+ p->slide_width = v[0];
+ p->slide_height = v[1];
+ }
+ }
}