diff options
Diffstat (limited to 'x11vnc/cursor.c')
| -rw-r--r-- | x11vnc/cursor.c | 4 |
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; } } |
