aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2018-01-04 15:41:39 +0100
committerThomas White <taw@bitwiz.org.uk>2018-01-04 15:41:39 +0100
commit64d9b0f710e044b148e5ef564dcef5a4d1a07cf1 (patch)
treed071627131cd65f13cdf7c5b0e8295c42064aa37 /src/narrative_window.c
parent921535b85a9f95df82bd88e714f1460f0b4ab7a8 (diff)
Change slide shape to 16:9, with FIXMEs
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 1007221..1bf9791 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -634,8 +634,9 @@ static int create_thumbnail(SCInterpreter *scin, SCBlock *bl,
{
SCBlock *b;
- *w = 320.0;
- *h = 256.0;
+ /* FIXME: Should come from presentation. 320/256 for 4:3 */
+ *w = 480.0;
+ *h = 270.0;
b = sc_interp_get_macro_real_block(scin);
*bvp = b;
@@ -656,7 +657,8 @@ static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp)
stylesheets[0] = p->stylesheet;
stylesheets[1] = NULL;
/* FIXME: Cache like crazy here */
- surf = render_sc(scblocks, w, h, 1024.0, 768.0, stylesheets, NULL,
+ /* FIXME: Get size from presentation. 1024/768 for 4:3 */
+ surf = render_sc(scblocks, w, h, 1280.0, 720.0, stylesheets, NULL,
p->is, 0, &top, p->lang);
frame_free(top);