- Fixed: The composer for complex multipatch textures did not clear the palette

buffer before filling it.


SVN r1737 (trunk)
This commit is contained in:
Christoph Oelckers 2009-07-25 09:11:15 +00:00
parent f1e6ec1fd9
commit d26aeb8939
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,8 @@
July 24, 2009 (Changes by Graf Zahl)
July 25, 2009 (Changes by Graf Zahl)
- Fixed: The composer for complex multipatch textures did not clear the palette
buffer before filling it.
July 24, 2009 (Changes by Graf Zahl)
- Fixed: using custom automap backgrounds crashed.
July 22, 2009

View File

@ -523,6 +523,7 @@ void FBitmap::CopyPixelData(int originx, int originy, const BYTE * patch, int sr
BYTE *buffer = data + 4*originx + Pitch*originy;
PalEntry penew[256];
memset(penew, 0, sizeof(penew));
if (inf && inf->blend)
{
iCopyColors<cPalEntry, cBGRA, bCopy>((BYTE*)penew, (const BYTE*)palette, 256, 4, inf);