pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dbf9c8
)
drawregion() only copies region on screen.
author
Aurélien Aptel
<aurelien.aptel@gmail.com>
Thu, 20 Oct 2011 21:26:58 +0000
(23:26 +0200)
committer
Aurélien Aptel
<aurelien.aptel@gmail.com>
Thu, 20 Oct 2011 21:26:58 +0000
(23:26 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
ad6db0d
..
46f6d5b
100644
(file)
--- 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.buf
h, BORDER, BORDER);
+ XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc,
x1*xw.cw, y1*xw.ch, (x2-1)*xw.cw, (y2-1)*xw.c
h, BORDER, BORDER);
}
void