pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896310e
)
fix PRINT/DRAW _TIMEOUT and fix redrawing bug.
author
Aurélien Aptel
<aurelien.aptel@gmail.com>
Sat, 21 Jan 2012 22:26:53 +0000
(23:26 +0100)
committer
Aurélien Aptel
<aurelien.aptel@gmail.com>
Sat, 21 Jan 2012 22:26:53 +0000
(23:26 +0100)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
c543bb1
..
f56667b
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1888,7
+1888,7
@@
expose(XEvent *ev) {
if(xw.state & WIN_REDRAW) {
if(!e->count) {
xw.state &= ~WIN_REDRAW;
-
draw(
);
+
xcopy(0, 0, term.col, term.row
);
}
} else
XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, e->x-BORDER, e->y-BORDER,
@@
-2028,7
+2028,7
@@
int
last_draw_too_old(void) {
struct timeval now;
gettimeofday(&now, NULL);
- return TIMEDIFF(now, xw.lastdraw) >=
PRINT
_TIMEOUT/1000;
+ return TIMEDIFF(now, xw.lastdraw) >=
DRAW
_TIMEOUT/1000;
}
void