mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:36:07 +00:00
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:
parent
f5828613f7
commit
1aebf2497e
1 changed files with 1 additions and 1 deletions
|
@ -67,8 +67,8 @@ BltMask(SURFOBJ* psoDest,
|
||||||
psoPattern = &psurfPattern->SurfObj;
|
psoPattern = &psurfPattern->SurfObj;
|
||||||
PatternWidth = psoPattern->sizlBitmap.cx;
|
PatternWidth = psoPattern->sizlBitmap.cx;
|
||||||
PatternHeight = psoPattern->sizlBitmap.cy;
|
PatternHeight = psoPattern->sizlBitmap.cy;
|
||||||
|
fnPattern_GetPixel = DibFunctionsForBitmapFormat[psoPattern->iBitmapFormat].DIB_GetPixel;
|
||||||
}
|
}
|
||||||
fnPattern_GetPixel = DibFunctionsForBitmapFormat[psoPattern->iBitmapFormat].DIB_GetPixel;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
psurfPattern = NULL;
|
psurfPattern = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue