summaryrefslogtreecommitdiffstats
path: root/x11vnc/cursor.c
diff options
context:
space:
mode:
authorrunge <runge>2007-01-31 15:41:42 +0000
committerrunge <runge>2007-01-31 15:41:42 +0000
commit1b9082bc8739e5ab186092ca1dcff1736eb91c0e (patch)
tree9d2a267bcbba93aed87634838c9ac10f36363210 /x11vnc/cursor.c
parent1f8da9bde3b7de272228872410143f076662ae13 (diff)
downloadlibtdevnc-1b9082bc8739e5ab186092ca1dcff1736eb91c0e.tar.gz
libtdevnc-1b9082bc8739e5ab186092ca1dcff1736eb91c0e.zip
x11vnc: -reflect, -N. -ncache, FINDDISPLAY, FINDCREATEDISPLAY, improvements. MODTWEAK_LOWEST workaround.
Diffstat (limited to 'x11vnc/cursor.c')
-rw-r--r--x11vnc/cursor.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c
index 10de753..8ca81e8 100644
--- a/x11vnc/cursor.c
+++ b/x11vnc/cursor.c
@@ -1113,7 +1113,6 @@ static rfbCursorPtr pixels2curs(unsigned long *pixels, int w, int h,
a = 0xff000000 & (*(pixels+i));
a = a >> 24; /* alpha channel */
-
if (a < (unsigned int) thresh) {
bitmap[i] = ' ';
} else {
@@ -1256,6 +1255,13 @@ static int get_exact_cursor(int init) {
}
#endif
+ if (rawfb_vnc_reflect) {
+ int last_idx = (int) get_cursor_serial(1);
+ if (last_idx) {
+ which = last_idx;
+ }
+ return which;
+ }
if (xfixes_present && dpy) {
#if LIBVNCSERVER_HAVE_LIBXFIXES
int last_idx = (int) get_cursor_serial(1);
@@ -1490,6 +1496,9 @@ int get_which_cursor(void) {
mode = 3;
}
+ if (rawfb_vnc_reflect && mode > -1) {
+ return get_exact_cursor(0);
+ }
if (mode == 3) {
if ((xfixes_present && use_xfixes) || macosx_console) {
if (db) fprintf(stderr, "get_which_cursor call get_exact_cursor\n");