summaryrefslogtreecommitdiffstats
path: root/vnc/vnc.c
diff options
context:
space:
mode:
Diffstat (limited to 'vnc/vnc.c')
-rw-r--r--vnc/vnc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 63dbfdb8..caaed648 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -452,6 +452,15 @@ int lib_framebuffer_update(struct vnc* v)
}
}
}
+ /* keep these in 32x32, vnc cursor can be alot bigger */
+ if (x > 31)
+ {
+ x = 31;
+ }
+ if (y > 31)
+ {
+ y = 31;
+ }
error = v->server_set_cursor(v, x, y, cursor_data, cursor_mask);
}
}