blank screen before drawing text

This commit is contained in:
Markus Teich 2015-04-22 11:57:08 +02:00
parent 5394f7f539
commit 75081d228e

1
sent.c
View File

@ -551,6 +551,7 @@ void xdraw()
XClearWindow(xw.dpy, xw.win); XClearWindow(xw.dpy, xw.win);
if (!im) { if (!im) {
drw_rect(d, 0, 0, xw.w, xw.h, 1, 1);
drw_text(d, (xw.w - width) / 2, (xw.h - height) / 2, width, height, slides[idx].text, 0); drw_text(d, (xw.w - width) / 2, (xw.h - height) / 2, width, height, slides[idx].text, 0);
drw_map(d, xw.win, 0, 0, xw.w, xw.h); drw_map(d, xw.win, 0, 0, xw.w, xw.h);
} else if (!(im->state & LOADED) && !pngread(im)) } else if (!(im->state & LOADED) && !pngread(im))