diff options
author | truelight <truelight@openttd.org> | 2007-06-21 13:31:41 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-21 13:31:41 +0000 |
commit | e8f9332af940685e735bfdd9ae1f945a06a5a00e (patch) | |
tree | 933320e886eda6d3177383debf4805ff14f0b394 /src/blitter/32bpp_anim.cpp | |
parent | edf68a04b043bcdd027f9a463ea52ef66c3afa6a (diff) | |
download | openttd-e8f9332af940685e735bfdd9ae1f945a06a5a00e.tar.xz |
(svn r10244) -Fix: make sure to let 32bpp-anim report the increased buffer-size it needs
Diffstat (limited to 'src/blitter/32bpp_anim.cpp')
-rw-r--r-- | src/blitter/32bpp_anim.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp index 1ccd2b7a9..578f0d35b 100644 --- a/src/blitter/32bpp_anim.cpp +++ b/src/blitter/32bpp_anim.cpp @@ -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; |