diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-10-20 23:26:58 +0200 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-10-20 23:26:58 +0200 |
commit | b1b9dc7eb55c4be142b347d4ef6255b7929526f7 (patch) | |
tree | f306932bc20bc7a5ee270b6d199430403b86adea | |
parent | 44c83397afcd941f0e7820831aaee36088149530 (diff) | |
download | st-patched-b1b9dc7eb55c4be142b347d4ef6255b7929526f7.tar.bz2 st-patched-b1b9dc7eb55c4be142b347d4ef6255b7929526f7.tar.xz st-patched-b1b9dc7eb55c4be142b347d4ef6255b7929526f7.zip |
drawregion() only copies region on screen.
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||
1861 | void | 1861 | void |