From 65b42bb85354cce814316a646a4a5ed6025a18e3 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 1 Jun 2008 03:36:47 +0000 Subject: x11vnc: support colormaps for depths other than 8. xinerama warppointer only if more than one subscreen. --- x11vnc/cursor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x11vnc/cursor.c') 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; } } -- cgit v1.2.1