aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 9375463..a4e6672 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -49,16 +49,16 @@ void rerender_slide(struct presentation *p)
free_render_buffers(s);
s->rendered_thumb = render_slide(s, s->parent->thumb_slide_width,
- p->slide_width, p->slide_height, p->is,
- ISZ_THUMBNAIL);
-
- s->rendered_edit = render_slide(s, s->parent->edit_slide_width,
- p->slide_width, p->slide_height, p->is,
- ISZ_EDITOR);
+ p->slide_width, p->slide_height, p->is,
+ ISZ_THUMBNAIL);
s->rendered_proj = render_slide(s, s->parent->proj_slide_width,
- p->slide_width, p->slide_height, p->is,
- ISZ_SLIDESHOW);
+ p->slide_width, p->slide_height, p->is,
+ ISZ_SLIDESHOW);
+
+ s->rendered_edit = render_slide(s, s->parent->edit_slide_width,
+ p->slide_width, p->slide_height, p->is,
+ ISZ_EDITOR);
}
@@ -67,17 +67,17 @@ static void render_edit_and_proj(struct presentation *p)
{
struct slide *s = p->cur_edit_slide;
- if ( s->rendered_edit == NULL ) {
- s->rendered_edit = render_slide(s, s->parent->edit_slide_width,
- p->slide_width, p->slide_height,
- p->is, ISZ_EDITOR);
- }
-
if ( s->rendered_proj == NULL ) {
s->rendered_proj = render_slide(s, s->parent->proj_slide_width,
p->slide_width, p->slide_height,
p->is, ISZ_SLIDESHOW);
}
+
+ if ( s->rendered_edit == NULL ) {
+ s->rendered_edit = render_slide(s, s->parent->edit_slide_width,
+ p->slide_width, p->slide_height,
+ p->is, ISZ_EDITOR);
+ }
}