diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-11 23:53:24 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-11 23:53:24 +0200 |
commit | 28026ebf0fde1eb1b51f3808b4f3fc681039e887 (patch) | |
tree | 76cfe260aa428894bf358c59385251865060408c /src/mainwindow.c | |
parent | 71e298fd373d5afea429b88f83b8be677e1e2c83 (diff) |
Fix \slidenumber
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 62dbe98..5b03828 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -50,20 +50,21 @@ void rerender_slide(struct presentation *p) { struct slide *s = p->cur_edit_slide; + int n = slide_number(p, s); 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); + ISZ_THUMBNAIL, n); s->rendered_proj = render_slide(s, s->parent->proj_slide_width, p->slide_width, p->slide_height, p->is, - ISZ_SLIDESHOW); + ISZ_SLIDESHOW, n); s->rendered_edit = render_slide(s, s->parent->edit_slide_width, p->slide_width, p->slide_height, p->is, - ISZ_EDITOR); + ISZ_EDITOR, n); } @@ -71,17 +72,18 @@ void rerender_slide(struct presentation *p) static void render_edit_and_proj(struct presentation *p) { struct slide *s = p->cur_edit_slide; + int n = slide_number(p, s); 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); + p->is, ISZ_SLIDESHOW, n); } 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); + p->slide_width, p->slide_height, + p->is, ISZ_EDITOR, n); } } |