aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/narrative_window.c8
-rw-r--r--src/presentation.c5
2 files changed, 8 insertions, 5 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);
diff --git a/src/presentation.c b/src/presentation.c
index 9765df9..eda8b7e 100644
--- a/src/presentation.c
+++ b/src/presentation.c
@@ -110,8 +110,9 @@ struct presentation *new_presentation(const char *imagestore)
new->scblocks = NULL;
- new->slide_width = 1024.0;
- new->slide_height = 768.0;
+ /* FIXME: Should come from presentation. 1024/768 for 4:3 */
+ new->slide_width = 1280.0;
+ new->slide_height = 720.0;
new->completely_empty = 1;
new->saved = 1;