diff options
Diffstat (limited to 'x11vnc/x11vnc.c')
| -rw-r--r-- | x11vnc/x11vnc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 56ad395..cd331ea 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -2307,6 +2307,8 @@ int main(int argc, char* argv[]) { } else if (!strcmp(arg, "-ncache_pad") || !strcmp(arg, "-nc_pad")) { CHECK_ARGC ncache_pad = atoi(argv[++i]); + } else if (!strcmp(arg, "-debug_ncache")) { + ncdb++; #endif } else if (!strcmp(arg, "-wireframe") || !strcmp(arg, "-wf")) { @@ -3670,6 +3672,9 @@ int main(int argc, char* argv[]) { rfbLog(" Note: '-scale' is on and this can cause more problems.\n"); } } + if (ncache && getenv("NCACHE_DEBUG")) { + ncdb = 1; + } /* check for OS with small shm limits */ if (using_shm && ! single_copytile) { |
