(svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to
authorsmatz
Wed, 18 Jun 2008 20:20:12 +0000
changeset 11013 71b7f7c475db
parent 11009 8dcebd74faca
child 11015 cf4b53f23fde
(svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to
src/blitter/32bpp_anim.cpp
--- a/src/blitter/32bpp_anim.cpp	Wed Jun 18 16:48:58 2008 +0000
+++ b/src/blitter/32bpp_anim.cpp	Wed Jun 18 20:20:12 2008 +0000
@@ -292,7 +292,6 @@
 void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
 {
 	assert(!_screen_disable_anim);
-	assert(_screen.width == this->anim_buf_width && _screen.height == this->anim_buf_height);
 
 	/* Never repaint the transparency pixel */
 	if (start == 0) {
@@ -314,7 +313,7 @@
 			dst++;
 			anim++;
 		}
-		dst += _screen.pitch - _screen.width;
+		dst += _screen.pitch - this->anim_buf_width;
 	}
 
 	/* Make sure the backend redraws the whole screen */