use xclear() in draw().
This commit is contained in:
parent
8c3757986a
commit
f693476365
3
st.c
3
st.c
|
@ -1321,8 +1321,7 @@ draw(int redraw_all) {
|
||||||
Glyph base, new;
|
Glyph base, new;
|
||||||
char buf[DRAW_BUF_SIZ];
|
char buf[DRAW_BUF_SIZ];
|
||||||
|
|
||||||
XSetForeground(xw.dis, dc.gc, dc.col[DefaultBG]);
|
xclear(0, 0, term.col-1, term.row-1);
|
||||||
XFillRectangle(xw.dis, xw.buf, dc.gc, 0, 0, xw.bufw, xw.bufh);
|
|
||||||
for(y = 0; y < term.row; y++) {
|
for(y = 0; y < term.row; y++) {
|
||||||
base = term.line[y][0];
|
base = term.line[y][0];
|
||||||
i = ox = 0;
|
i = ox = 0;
|
||||||
|
|
Loading…
Reference in New Issue