aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-08-13 22:35:20 +0200
committerThomas White <taw@bitwiz.org.uk>2013-08-13 22:35:20 +0200
commit2b9ce018705558f725b7afca00ed714b3582e514 (patch)
tree44505aaffcaa3090d78c5deda1ef96bdb1e97e30
parent3377fc913c4cf79967a3ca7a4253c9030b3e5067 (diff)
Always render editor view last
-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);
+ }
}