- Fixed: FMultiPatchTexture::CopyTrueColorPixels() should clear the buffer

first before drawing into it if the copy op passed to it is OP_OVERWRITE.
  FTexture::FillBuffer() sets this to erase whatever texture might have been
  in the space it is going into.


SVN r1874 (trunk)
This commit is contained in:
Randy Heit 2009-09-25 02:27:48 +00:00
commit 6a5ab0edc0
4 changed files with 27 additions and 1 deletions

View file

@ -477,3 +477,17 @@ void FBitmap::CopyPixelData(int originx, int originy, const BYTE * patch, int sr
}
}
//===========================================================================
//
// Clear buffer
//
//===========================================================================
void FBitmap::Zero()
{
BYTE *buffer = data;
for (int y = 0; y < Height; ++y)
{
memset(buffer, 0, Width*4);
buffer += Pitch;
}
}