blank screen before drawing text
This commit is contained in:
parent
5394f7f539
commit
75081d228e
1
sent.c
1
sent.c
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user