diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 0f4f533c69..69531e7bbf 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -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 diff --git a/src/textures/bitmap.cpp b/src/textures/bitmap.cpp index b06769b1a1..702b2b5f51 100644 --- a/src/textures/bitmap.cpp +++ b/src/textures/bitmap.cpp @@ -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((BYTE*)penew, (const BYTE*)palette, 256, 4, inf);