aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-10-17 22:31:35 +0100
committerThomas White <taw@bitwiz.org.uk>2011-10-17 22:31:35 +0100
commitdd3057bff79af7971ec9827e9dc07cdf3366396c (patch)
tree224703fab13f5271ce9942556d6ba45ef28e7ac4 /src
parent39ebcd75c7f63221e3af95175cee150f0c9bb0c4 (diff)
Set scaling correctly for rendering
Diffstat (limited to 'src')
-rw-r--r--src/slide_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slide_render.c b/src/slide_render.c
index c0734df..d686c77 100644
--- a/src/slide_render.c
+++ b/src/slide_render.c
@@ -49,7 +49,7 @@ static cairo_surface_t *render_slide(struct slide *s, int w, int h)
cairo_set_source_rgb(cr, 1.0, 1.0, 1.0);
cairo_fill(cr);
- /* FIXME: Set scale such that nominal size fits */
+ cairo_scale(cr, w/s->parent->slide_width, h/s->parent->slide_height);
for ( i=0; i<s->num_objects; i++ ) {