aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Aptel2010-09-11 16:01:41 +0200
committerAurélien Aptel2010-09-11 16:01:41 +0200
commit74d49c436f8e2f073be6d0659bedb4e15f5a8d7f (patch)
tree8e3c3df329fe91fb9a6861b84059c75497e721fa
parent983c49b27c18485a73266f0a8831fed7b3e6d9c1 (diff)
downloadaur-74d49c436f8e2f073be6d0659bedb4e15f5a8d7f.tar.gz
use xclear() in draw().
-rw-r--r--st.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/st.c b/st.c
index 79746297e62f..d2f8c2e1f7aa 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;