Prevent a crash with a BadDrawable X error message with some MaskBlt

calls.
oldstable
Maxime Bellengé 2003-10-14 20:11:36 +00:00 committed by Alexandre Julliard
parent fc60c1e195
commit 47d64a0459
1 changed files with 4 additions and 3 deletions

View File

@ -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):