diff options
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) { |