[hackers] [sent] Also call ffload on the current slide in advance() || Markus Teich
commit e1a0b51d843d8e0f148e8bac6b5a134fbb5c443c
Author: Markus Teich <markus.teich_AT_stusta.mhn.de>
AuthorDate: Thu Jun 30 16:57:31 2016 +0200
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Thu Jun 30 16:57:31 2016 +0200
Also call ffload on the current slide in advance()
This fixes a bug where the image would not be loaded if the user setup a
keybinding which advances multiple slides at once. Then the preloading for the
previous/next slide in advance() would not catch that case and instead of an
image the text version (`_AT_filename`) would be rendered on the slide.
diff --git a/sent.c b/sent.c
index e4bea31..a9ca274 100644
--- a/sent.c
+++ b/sent.c
_AT_@ -436,6 +436,7 @@ advance(const Arg *arg)
if (slides[idx].img)
slides[idx].img->state &= ~(DRAWN | SCALED);
idx = new_idx;
+ ffload(&slides[idx]);
xdraw();
if (slidecount > idx + 1)
ffload(&slides[idx + 1]);
Received on Thu Jun 30 2016 - 16:59:29 CEST
This archive was generated by hypermail 2.3.0
: Thu Jun 30 2016 - 17:00:16 CEST