summaryrefslogtreecommitdiffstats
path: root/x11vnc/xrecord.c
diff options
context:
space:
mode:
authorrunge <runge>2006-12-28 05:24:25 +0000
committerrunge <runge>2006-12-28 05:24:25 +0000
commit56eb45a5f8ab93abb1e15d4c0b8214d06a3d6d18 (patch)
tree34da978baeba2c625611bcaaf8cba8571ab00f8b /x11vnc/xrecord.c
parent8aa6fb9523957c7f4a3f14fb2c90ea9f9292a41f (diff)
downloadlibtdevnc-56eb45a5f8ab93abb1e15d4c0b8214d06a3d6d18.tar.gz
libtdevnc-56eb45a5f8ab93abb1e15d4c0b8214d06a3d6d18.zip
x11vnc: more work on -ncache.
Diffstat (limited to 'x11vnc/xrecord.c')
-rw-r--r--x11vnc/xrecord.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/x11vnc/xrecord.c b/x11vnc/xrecord.c
index ababb37..26630fd 100644
--- a/x11vnc/xrecord.c
+++ b/x11vnc/xrecord.c
@@ -647,7 +647,7 @@ if (db > 1) fprintf(stderr, "record_CA-%d\n", k++);
dt = (dnow() - servertime_diff) - st;
fprintf(stderr, "record_CA-%d *FOUND_SCROLL: src: 0x%lx dx: %d dy: %d "
"x: %d y: %d w: %d h: %d st: %.4f %.4f %.4f\n", k++, src, dx, dy,
- src_x, src_y, w, h, st, dt, dnow() - x11vnc_start);
+ src_x, src_y, w, h, st, dt, dnowx());
}
i = scr_ev_cnt;
@@ -1144,7 +1144,7 @@ if (db > 1) fprintf(stderr, "record_CW-%d\n", k++);
dt = (dnow() - servertime_diff) - st;
fprintf(stderr, "record_CW-%d *FOUND_SCROLL: win: 0x%lx dx: %d dy: %d "
"x: %d y: %d w: %d h: %d st: %.4f dt: %.4f %.4f\n", k++, win,
- dx, dy, src_x, src_y, w, h, st, dt, dnow() - x11vnc_start);
+ dx, dy, src_x, src_y, w, h, st, dt, dnowx());
}
i = scr_ev_cnt;
@@ -1271,7 +1271,7 @@ static void record_grab(XPointer ptr, XRecordInterceptData *rec_data) {
req = (xReq *) rec_data->data;
if (req->reqType == X_GrabServer) {
- double now = dnow() - x11vnc_start;
+ double now = dnowx();
xserver_grabbed++;
if (db) rfbLog("X server Grabbed: %d %.5f\n", xserver_grabbed, now);
if (xserver_grabbed > 1) {
@@ -1282,7 +1282,7 @@ static void record_grab(XPointer ptr, XRecordInterceptData *rec_data) {
xserver_grabbed = 1;
}
} else if (req->reqType == X_UngrabServer) {
- double now = dnow() - x11vnc_start;
+ double now = dnowx();
xserver_grabbed--;
if (xserver_grabbed < 0) {
xserver_grabbed = 0;