Only set the pattern function pointer if the pattern surface is valid, spotted by Amine Khaldi

svn path=/trunk/; revision=42739
This commit is contained in:
Gregor Schneider 2009-08-16 18:52:06 +00:00
parent f5828613f7
commit 1aebf2497e

View file

@ -67,9 +67,9 @@ BltMask(SURFOBJ* psoDest,
psoPattern = &psurfPattern->SurfObj;
PatternWidth = psoPattern->sizlBitmap.cx;
PatternHeight = psoPattern->sizlBitmap.cy;
}
fnPattern_GetPixel = DibFunctionsForBitmapFormat[psoPattern->iBitmapFormat].DIB_GetPixel;
}
}
else
psurfPattern = NULL;