[hackers] [sent] load all images before starting the preso || Markus Teich
commit 6df3d039a02f6304fd6769717f8613f6012d2eb6
Author: Markus Teich <markus.teich_AT_stusta.mhn.de>
AuthorDate: Sat Sep 2 01:09:36 2017 +0200
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Sat Sep 2 01:09:36 2017 +0200
load all images before starting the preso
diff --git a/sent.c b/sent.c
index 6a4d565..6cf53ff 100644
--- a/sent.c
+++ b/sent.c
_AT_@ -436,12 +436,7 @@ advance(const Arg *arg)
if (slides[idx].img)
slides[idx].img->state &= ~SCALED;
idx = new_idx;
- ffload(&slides[idx]);
xdraw();
- if (slidecount > idx + 1)
- ffload(&slides[idx + 1]);
- if (0 < idx)
- ffload(&slides[idx - 1]);
}
}
_AT_@ -533,6 +528,7 @@ void
xinit()
{
XTextProperty prop;
+ unsigned int i;
if (!(xw.dpy = XOpenDisplay(NULL)))
die("sent: Unable to open display");
_AT_@ -560,7 +556,8 @@ xinit()
XSetWindowBackground(xw.dpy, xw.win, sc[ColBg].pixel);
xloadfonts();
- ffload(&slides[0]);
+ for (i = 0; i < slidecount; i++)
+ ffload(&slides[i]);
XStringListToTextProperty(&argv0, 1, &prop);
XSetWMName(xw.dpy, xw.win, &prop);
Received on Sat Sep 02 2017 - 01:12:44 CEST
This archive was generated by hypermail 2.3.0
: Sat Sep 02 2017 - 01:24:30 CEST