From 47d64a04598d0402bf621284e78736a5785f387c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Belleng=C3=A9?= Date: Tue, 14 Oct 2003 20:11:36 +0000 Subject: [PATCH] Prevent a crash with a BadDrawable X error message with some MaskBlt calls. --- graphics/x11drv/bitblt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/graphics/x11drv/bitblt.c b/graphics/x11drv/bitblt.c index 6dad5567d8..e94e71f5fd 100644 --- a/graphics/x11drv/bitblt.c +++ b/graphics/x11drv/bitblt.c @@ -1504,9 +1504,10 @@ static BOOL BITBLT_InternalStretchBlt( X11DRV_PDEVICE *physDevDst, INT xDst, INT case OP_ARGS(SRC,DST): case OP_ARGS(TMP,SRC): case OP_ARGS(TMP,DST): - XCopyArea( gdi_display, pixmaps[OP_SRC(*opcode)], - pixmaps[OP_DST(*opcode)], tmpGC, - 0, 0, width, height, 0, 0 ); + if (useSrc) + XCopyArea( gdi_display, pixmaps[OP_SRC(*opcode)], + pixmaps[OP_DST(*opcode)], tmpGC, + 0, 0, width, height, 0, 0 ); break; case OP_ARGS(PAT,TMP):