(svn r10244) -Fix: make sure to let 32bpp-anim report the increased buffer-size it needs

This commit is contained in:
truelight
2007-06-21 13:31:41 +00:00
parent d183723d39
commit 2f0500a438
3 changed files with 7 additions and 1 deletions

View File

@@ -244,6 +244,11 @@ void Blitter_32bppAnim::ScrollBuffer(void *video, int &left, int &top, int &widt
Blitter_32bppBase::ScrollBuffer(video, left, top, width, height, scroll_x, scroll_y);
}
int Blitter_32bppAnim::BufferSize(int width, int height)
{
return width * height * (sizeof(uint32) + sizeof(uint8));
}
void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
{
uint8 *anim = this->anim_buf;