aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent921535b85a9f95df82bd88e714f1460f0b4ab7a8 (diff)
Change slide shape to 16:9, with FIXMEs
Diffstat (limited to 'src')
-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;