From d26aeb8939389b8ccdea260e1031f0f136969dba Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 25 Jul 2009 09:11:15 +0000 Subject: [PATCH] - Fixed: The composer for complex multipatch textures did not clear the palette buffer before filling it. SVN r1737 (trunk) --- docs/rh-log.txt | 6 +++++- src/textures/bitmap.cpp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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);