Signed-off-by: Giovanni Mascellani <gmascellani(a)codeweavers.com>
---
dlls/winex11.drv/bitblt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c
index fad183b0b01..ffa2c319210 100644
--- a/dlls/winex11.drv/bitblt.c
+++ b/dlls/winex11.drv/bitblt.c
@@ -1364,6 +1364,9 @@ DWORD CDECL X11DRV_GetImage( PHYSDEV dev, BITMAPINFO *info,
/* use a temporary pixmap to avoid the BadMatch error */
Pixmap pixmap = XCreatePixmap( gdi_display, root_window, width, height, vis.depth );
GC gc = XCreateGC( gdi_display, pixmap, 0, NULL );
+ int black = BlackPixel( gdi_display, DefaultScreen(gdi_display) );
+ XSetForeground( gdi_display, gc, black );
+ XFillRectangle( gdi_display, pixmap, gc, 0, 0, width, height );
XSetGraphicsExposures( gdi_display, gc, False );
XCopyArea( gdi_display, physdev->drawable, pixmap, gc,
--
2.31.1