aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index ad6db0d..46f6d5b 100644
--- a/st.c
+++ b/st.c
@@ -1855,7 +1855,7 @@ drawregion(int x1, int y1, int x2, int y2) {
1855 xdraws(buf, base, ox, y, ic, ib); 1855 xdraws(buf, base, ox, y, ic, ib);
1856 } 1856 }
1857 xdrawcursor(); 1857 xdrawcursor();
1858 XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, 0, 0, xw.bufw, xw.bufh, BORDER, BORDER); 1858 XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, x1*xw.cw, y1*xw.ch, (x2-1)*xw.cw, (y2-1)*xw.ch, BORDER, BORDER);
1859} 1859}
1860 1860
1861void 1861void