diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-09-11 16:01:41 +0200 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-09-11 16:01:41 +0200 |
commit | d3440e1e0faa976353692a683dc1c7c67400ae1b (patch) | |
tree | c62af05916b052d5afc8dd812add5e621a8fe2ef | |
parent | 9134535808c95c19929df08d716720f6b4059e5b (diff) | |
download | st-d3440e1e0faa976353692a683dc1c7c67400ae1b.tar.gz st-d3440e1e0faa976353692a683dc1c7c67400ae1b.tar.bz2 |
use xclear() in draw().
-rw-r--r-- | st.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |