Use custom slide size in narrative print
authorThomas White <taw@physics.org>
Thu, 25 Jan 2018 21:55:38 +0000 (22:55 +0100)
committerThomas White <taw@physics.org>
Thu, 25 Jan 2018 21:55:38 +0000 (22:55 +0100)
src/print.c

index acc44dd..250c9da 100644 (file)
@@ -156,8 +156,8 @@ static int create_thumbnail(SCInterpreter *scin, SCBlock *bl,
        struct presentation *p = ps->p;
        SCBlock *b;
 
-       *w = 320.0;
-       *h = 256.0;
+       *w = 270.0*(p->slide_width / p->slide_height);
+       *h = 270.0;
        b = sc_interp_get_macro_real_block(scin);
 
        *bvp = b;