(svn r27796) -Fix [FS#6545]: 32bpp-anim blitters assumed that pitch and width of the screen were equal.

This commit is contained in:
frosch
2017-03-18 17:14:53 +00:00
parent 36d709e047
commit 19188818ea
3 changed files with 36 additions and 29 deletions

View File

@@ -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;
}