Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
a92a678
)
Style inquisition.
author
Christoph Lohmann <
[email protected]
>
Fri, 15 Feb 2013 18:36:20 +0000
(19:36 +0100)
committer
Christoph Lohmann <
[email protected]
>
Fri, 15 Feb 2013 18:36:20 +0000
(19:36 +0100)
st.c
diff
|
blob
|
history
diff --git
a/st.c
b/st.c
index
f6e606b
..
0ae2c90
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-3182,7
+3182,6
@@
run(void) {
}
gettimeofday(&now, NULL);
}
gettimeofday(&now, NULL);
- /* usecs until (next) frame */
drawtimeout.tv_sec = 0;
drawtimeout.tv_usec = (1000/xfps) * 1000;
tv = &drawtimeout;
drawtimeout.tv_sec = 0;
drawtimeout.tv_usec = (1000/xfps) * 1000;
tv = &drawtimeout;
@@
-3193,7
+3192,8
@@
run(void) {
if(FD_ISSET(xfd, &rfd))
xev = actionfps;
if(FD_ISSET(xfd, &rfd))
xev = actionfps;
- if(TIMEDIFF(now, last) > (xev ? (1000/xfps) : (1000/actionfps))) {
+ if(TIMEDIFF(now, last) > \
+ (xev ? (1000/xfps) : (1000/actionfps))) {
while(XPending(xw.dpy)) {
XNextEvent(xw.dpy, &ev);
if(XFilterEvent(&ev, None))
while(XPending(xw.dpy)) {
XNextEvent(xw.dpy, &ev);
if(XFilterEvent(&ev, None))