diff options
Diffstat (limited to 'x11vnc/cursor.c')
-rw-r--r-- | x11vnc/cursor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c index ec50e28..0be77f5 100644 --- a/x11vnc/cursor.c +++ b/x11vnc/cursor.c @@ -943,6 +943,12 @@ static rfbCursorPtr pixels2curs(unsigned long *pixels, int w, int h, first = 0; } + if (cmap8to24 && cmap8to24_fb && depth == 8) { + if (Bpp == 1) { + Bpp = 4; + } + } + if (scaling_cursor && scale_cursor_fac != 1.0) { int W, H; char *pixels_use = (char *) pixels; |