drawregion() only copies region on screen. - st - Personal fork of st (HTM) git clone git://git.drkhsh.at/st.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 23bb97d9f3b01da5bc4ad5c01616606adee4f1da (DIR) parent 0dbf9c8c12a5de35d1cef22349ab80e8f0a8f10e (HTM) Author: Aurélien Aptel <aurelien.aptel@gmail.com> Date: Thu, 20 Oct 2011 23:26:58 +0200 drawregion() only copies region on screen. Diffstat: M st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/st.c b/st.c @@ -1855,7 +1855,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-1)*xw.cw, (y2-1)*xw.ch, BORDER, BORDER); } void