summaryrefslogtreecommitdiffstats
path: root/x11vnc/xdamage.c
diff options
context:
space:
mode:
authorrunge <runge>2007-01-31 16:56:33 +0000
committerrunge <runge>2007-01-31 16:56:33 +0000
commit819fe41bdc7758c0489af4f70afccac07b3ffd26 (patch)
treed778879bcfdb01b35257868776264f64a145cede /x11vnc/xdamage.c
parentc1b4a3b9960b775e3e1688c1cf10e412ea669706 (diff)
downloadlibvncserver-819fe41bdc7758c0489af4f70afccac07b3ffd26.zip
libvncserver-819fe41bdc7758c0489af4f70afccac07b3ffd26.tar.gz
fix warnings.
Diffstat (limited to 'x11vnc/xdamage.c')
-rw-r--r--x11vnc/xdamage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x11vnc/xdamage.c b/x11vnc/xdamage.c
index fb5e2b7..109492d 100644
--- a/x11vnc/xdamage.c
+++ b/x11vnc/xdamage.c
@@ -558,9 +558,11 @@ int xdamage_hint_skip(int y) {
int fast_tmpl = 1;
sraRegionPtr reg, tmpl;
int ret, i, n, nreg;
+#ifndef NO_NCACHE
static int ncache_no_skip = 0;
static double last_ncache_no_skip = 0.0;
static double last_ncache_no_skip_long = 0.0, ncache_fac = 0.25;
+#endif
if (! xdamage_present || ! use_xdamage) {
return 0; /* cannot skip */
OpenPOWER on IntegriCloud