aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-11-22 21:12:11 +0100
committerThomas White <taw@bitwiz.org.uk>2014-11-22 21:12:11 +0100
commitaef9ff30bf35c60dc757212f98cb4122a089b867 (patch)
tree8ca06aaf6a7394094fd6d056c995a85d79ef50ef
parent86790d75487fda0aa5fccaf01d10ab00035047ad (diff)
Fix slideshow size, remove debug
-rw-r--r--src/slideshow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index da15ad3..a2d1080 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -74,8 +74,6 @@ void slideshow_rerender(SlideShow *ss)
int n;
n = slide_number(ss->p, ss->cur_slide);
- printf("rendering %p\n", ss->cur_slide->scblocks);
- show_sc_blocks(ss->cur_slide->scblocks);
ss->surface = render_sc(ss->cur_slide->scblocks,
ss->slide_width, ss->slide_height,
ss->p->slide_width, ss->p->slide_height,
@@ -280,6 +278,8 @@ SlideShow *try_start_slideshow(SlideWindow *sw, struct presentation *p)
ss->top.pad_r = 0;
ss->top.pad_t = 0;
ss->top.pad_b = 0;
+ ss->top.x = 0.0;
+ ss->top.y = 0.0;
ss->top.w = slide_width;
ss->top.h = slide_height;
ss->top.grad = GRAD_NONE;
@@ -323,6 +323,7 @@ SlideShow *try_start_slideshow(SlideWindow *sw, struct presentation *p)
w = rect.height * slide_width/slide_height;
if ( w > rect.width ) w = rect.width;
ss->slide_width = w;
+ ss->slide_height = rect.height;
} /* FIXME: Sensible (configurable) choice of monitor */