aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-04-13 09:49:11 +0200
committerChristoph Lohmann <20h@r-36.net>2013-04-13 09:49:11 +0200
commitde4cd2f6afdf450aaa97abb328f4c4849602c7db (patch)
treece3a7cb12e7b5c5ccd9045d53dd57b7d25eb4607 /st.c
parent1e7816c2023f48728e15cc4128ad8be163986902 (diff)
downloadst-de4cd2f6afdf450aaa97abb328f4c4849602c7db.tar.gz
st-de4cd2f6afdf450aaa97abb328f4c4849602c7db.tar.bz2
st-de4cd2f6afdf450aaa97abb328f4c4849602c7db.zip
Resize now uses xclear().
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/st.c b/st.c
index c4eafa0..de3d045 100644
--- a/st.c
+++ b/st.c
@@ -2358,10 +2358,8 @@ xresize(int col, int row) {
XFreePixmap(xw.dpy, xw.buf);
xw.buf = XCreatePixmap(xw.dpy, xw.win, xw.w, xw.h,
DefaultDepth(xw.dpy, xw.scr));
- XSetForeground(xw.dpy, dc.gc, dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg].pixel);
- XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, xw.w, xw.h);
-
XftDrawChange(xw.draw, xw.buf);
+ xclear(0, 0, xw.w, xw.h);
}
static inline ushort