diff options
author | runge <runge> | 2006-01-19 03:54:10 +0000 |
---|---|---|
committer | runge <runge> | 2006-01-19 03:54:10 +0000 |
commit | 17e6b6a2bf6def6b380bee2fcc0fb9e8254518f4 (patch) | |
tree | 8a387c278f6b7a66a91fd4e8c5deb5b8b9a14e79 /x11vnc/cursor.c | |
parent | e38c3c224b19775a70c8ee5b8eddbf81be07a0bd (diff) | |
download | libtdevnc-17e6b6a2bf6def6b380bee2fcc0fb9e8254518f4.tar.gz libtdevnc-17e6b6a2bf6def6b380bee2fcc0fb9e8254518f4.zip |
x11vnc: -8to24 now works on default depth 8 displays.
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; |