(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim

This commit is contained in:
truelight 2007-06-21 12:45:41 +00:00
parent d614cec205
commit 426de65b18

View File

@ -186,6 +186,8 @@ void Blitter_32bppAnim::CopyToBuffer(const void *video, void *dst, int width, in
uint32 *src = (uint32 *)video;
uint8 *anim_line;
if (this->anim_buf == NULL) return;
anim_line = ((uint32 *)video - (uint32 *)_screen.dst_ptr) + this->anim_buf;
for (; height > 0; height--) {