summaryrefslogtreecommitdiffstats
path: root/x11vnc/cursor.c
diff options
context:
space:
mode:
authorrunge <runge>2008-06-01 03:36:47 +0000
committerrunge <runge>2008-06-01 03:36:47 +0000
commit65b42bb85354cce814316a646a4a5ed6025a18e3 (patch)
tree7cac435d5e12f3e49c1e89d3987510afd66b5169 /x11vnc/cursor.c
parent1983292eb0744ef708b0c01877713b59c42a2e13 (diff)
downloadlibtdevnc-65b42bb85354cce814316a646a4a5ed6025a18e3.tar.gz
libtdevnc-65b42bb85354cce814316a646a4a5ed6025a18e3.zip
x11vnc: support colormaps for depths other than 8. xinerama warppointer only if more than one subscreen.
Diffstat (limited to 'x11vnc/cursor.c')
-rw-r--r--x11vnc/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c
index d7f500c..9bc55e8 100644
--- a/x11vnc/cursor.c
+++ b/x11vnc/cursor.c
@@ -976,8 +976,8 @@ static rfbCursorPtr pixels2curs(unsigned long *pixels, int w, int h,
first = 0;
}
- if (cmap8to24 && cmap8to24_fb && depth == 8) {
- if (Bpp == 1) {
+ if (cmap8to24 && cmap8to24_fb && depth <= 16) {
+ if (Bpp <= 2) {
Bpp = 4;
}
}