diff options
author | frosch <frosch@openttd.org> | 2017-03-18 17:14:53 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-03-18 17:14:53 +0000 |
commit | 19188818eae21fd3ff3b3c5ae35cde693b31ec28 (patch) | |
tree | 375ba310792b954eb79bc8a95c5298c7008c1fd3 /src/blitter/32bpp_anim.hpp | |
parent | 36d709e04716327f254a4803af8fc7b5f8da9a97 (diff) | |
download | openttd-19188818eae21fd3ff3b3c5ae35cde693b31ec28.tar.xz |
(svn r27796) -Fix [FS#6545]: 32bpp-anim blitters assumed that pitch and width of the screen were equal.
Diffstat (limited to 'src/blitter/32bpp_anim.hpp')
-rw-r--r-- | src/blitter/32bpp_anim.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blitter/32bpp_anim.hpp b/src/blitter/32bpp_anim.hpp index 4b08429ed..1b35c1766 100644 --- a/src/blitter/32bpp_anim.hpp +++ b/src/blitter/32bpp_anim.hpp @@ -20,13 +20,15 @@ protected: uint16 *anim_buf; ///< In this buffer we keep track of the 8bpp indexes so we can do palette animation int anim_buf_width; ///< The width of the animation buffer. int anim_buf_height; ///< The height of the animation buffer. + int anim_buf_pitch; ///< The pitch of the animation buffer. Palette palette; ///< The current palette. public: Blitter_32bppAnim() : anim_buf(NULL), anim_buf_width(0), - anim_buf_height(0) + anim_buf_height(0), + anim_buf_pitch(0) { this->palette = _cur_palette; } |