diff options
author | runge <runge> | 2006-01-22 03:56:23 +0000 |
---|---|---|
committer | runge <runge> | 2006-01-22 03:56:23 +0000 |
commit | 1967913e9530139eb355b7b3108bb12314ba47da (patch) | |
tree | f6bcde8135b62c53d9c9a99cf4a655a6bad86b74 /x11vnc/screen.c | |
parent | 17e6b6a2bf6def6b380bee2fcc0fb9e8254518f4 (diff) | |
download | libtdevnc-1967913e9530139eb355b7b3108bb12314ba47da.tar.gz libtdevnc-1967913e9530139eb355b7b3108bb12314ba47da.zip |
x11vnc: -8to24 opts, use XGetSubImage. fix -threads deadlocks and -rawfb crash
Diffstat (limited to 'x11vnc/screen.c')
-rw-r--r-- | x11vnc/screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/x11vnc/screen.c b/x11vnc/screen.c index ed2553c..e45b00c 100644 --- a/x11vnc/screen.c +++ b/x11vnc/screen.c @@ -980,6 +980,8 @@ static XImage *initialize_raw_fb(void) { raw_fb_image->depth = (b == 32) ? 24 : b; } + depth = raw_fb_image->depth; + if (clipshift) { memset(raw_fb, 0xff, dpy_x * dpy_y * b/8); } else if (raw_fb_addr) { |