diff options
Diffstat (limited to 'x11vnc/xwrappers.c')
-rw-r--r-- | x11vnc/xwrappers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/x11vnc/xwrappers.c b/x11vnc/xwrappers.c index 181c4f1..14c63dd 100644 --- a/x11vnc/xwrappers.c +++ b/x11vnc/xwrappers.c @@ -265,6 +265,7 @@ XImage *XCreateImage_wr(Display *disp, Visual *visual, unsigned int depth, xi->bitmap_pad = bitmap_pad; xi->bytes_per_line = bytes_per_line ? bytes_per_line : xi->width * xi->bits_per_pixel / 8; + xi->bitmap_unit = -1; /* hint to not call XDestroyImage */ return xi; } |