From d3440e1e0faa976353692a683dc1c7c67400ae1b Mon Sep 17 00:00:00 2001 From: Aurélien Aptel Date: Sat, 11 Sep 2010 16:01:41 +0200 Subject: use xclear() in draw(). --- st.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/st.c b/st.c index 7974629..d2f8c2e 100644 --- a/st.c +++ b/st.c @@ -1321,8 +1321,7 @@ draw(int redraw_all) { Glyph base, new; char buf[DRAW_BUF_SIZ]; - XSetForeground(xw.dis, dc.gc, dc.col[DefaultBG]); - XFillRectangle(xw.dis, xw.buf, dc.gc, 0, 0, xw.bufw, xw.bufh); + xclear(0, 0, term.col-1, term.row-1); for(y = 0; y < term.row; y++) { base = term.line[y][0]; i = ox = 0; -- cgit v1.2.3