src/blitter/32bpp_anim.cpp
changeset 9550 89a9d945b97d
parent 9548 eae9545bf02c
child 9597 825e5483799b
equal deleted inserted replaced
9549:41ec95418e84 9550:89a9d945b97d
   290 }
   290 }
   291 
   291 
   292 void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
   292 void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
   293 {
   293 {
   294 	assert(!_screen_disable_anim);
   294 	assert(!_screen_disable_anim);
   295 	assert(_screen.width == this->anim_buf_width && _screen.height == this->anim_buf_height);
       
   296 
   295 
   297 	/* Never repaint the transparency pixel */
   296 	/* Never repaint the transparency pixel */
   298 	if (start == 0) {
   297 	if (start == 0) {
   299 		start++;
   298 		start++;
   300 		count--;
   299 		count--;
   312 				*dst = LookupColourInPalette(colour);
   311 				*dst = LookupColourInPalette(colour);
   313 			}
   312 			}
   314 			dst++;
   313 			dst++;
   315 			anim++;
   314 			anim++;
   316 		}
   315 		}
   317 		dst += _screen.pitch - _screen.width;
   316 		dst += _screen.pitch - this->anim_buf_width;
   318 	}
   317 	}
   319 
   318 
   320 	/* Make sure the backend redraws the whole screen */
   319 	/* Make sure the backend redraws the whole screen */
   321 	_video_driver->MakeDirty(0, 0, _screen.width, _screen.height);
   320 	_video_driver->MakeDirty(0, 0, _screen.width, _screen.height);
   322 }
   321 }