summaryrefslogtreecommitdiffstats
path: root/x11vnc/scan.c
diff options
context:
space:
mode:
authorrunge <runge>2007-03-25 02:43:00 +0000
committerrunge <runge>2007-03-25 02:43:00 +0000
commit3f0f799d2050ec046c28a54b027b377cf573ef9e (patch)
tree2a492e6373397ae0a8d535150a7fc8a6923322ec /x11vnc/scan.c
parentca56c41c9c59048167e46073043d2fcd3db305de (diff)
downloadlibvncserver-3f0f799d2050ec046c28a54b027b377cf573ef9e.zip
libvncserver-3f0f799d2050ec046c28a54b027b377cf573ef9e.tar.gz
x11vnc: remove build errors, get -ncache working on macosx again.
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r--x11vnc/scan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c
index 1c5b54e..4f3b5e7 100644
--- a/x11vnc/scan.c
+++ b/x11vnc/scan.c
@@ -2867,7 +2867,8 @@ static int scan_display(int ystart, int rescan) {
xd_check = 0;
if (xdamage_hint_skip(y)) {
if (xd_do_check && dpy && use_xdamage == 1) {
- xd_tck = (xd_tck++) % xd_freq;
+ xd_tck++;
+ xd_tck = xd_tck % xd_freq;
if (xd_tck == 0) {
xd_check = 1;
xd_samples++;
@@ -3164,7 +3165,7 @@ int scan_for_updates(int count_only) {
SCAN_FATAL(tile_count);
last_xd_check = time(NULL);
if (xd_samples > 200) {
- static bad = 0;
+ static int bad = 0;
if (xd_misses > (5 * xd_samples) / 100) {
rfbLog("XDAMAGE is not working well... misses: %d/%d\n", xd_misses, xd_samples);
rfbLog("Maybe a OpenGL app like Beryl is the problem? Use -noxdamage\n");
OpenPOWER on IntegriCloud