aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2011-11-01 16:37:16 +0100
committerAurélien Aptel <aurelien.aptel@gmail.com>2011-11-01 16:37:16 +0100
commitab9c9a4e3af246d0b4c6419bffb02a23fd5c1462 (patch)
tree757f0b7f27a458e078b9c93223676199547db78e /st.c
parenta20125a3d1fd9fec2af7886a474691a1839f8537 (diff)
parent23bb97d9f3b01da5bc4ad5c01616606adee4f1da (diff)
downloadst-ab9c9a4e3af246d0b4c6419bffb02a23fd5c1462.tar.gz
merge.
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 98bb051..e193443 100644
--- a/st.c
+++ b/st.c
@@ -1861,7 +1861,7 @@ drawregion(int x1, int y1, int x2, int y2) {
xdraws(buf, base, ox, y, ic, ib);
}
xdrawcursor();
- XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, 0, 0, xw.bufw, xw.bufh, BORDER, BORDER);
+ XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, x1*xw.cw, y1*xw.ch, x2*xw.cw, y2*xw.ch, BORDER, BORDER);
}
void
remember that computers suck.