src/blitter/32bpp_anim.cpp
changeset 8054 158d3adaa267
parent 8053 2e4ea3db6b9c
child 8587 6db234b2b897
equal deleted inserted replaced
8053:2e4ea3db6b9c 8054:158d3adaa267
    47 			if (src->a == 0) {
    47 			if (src->a == 0) {
    48 				/* src->r is 'misused' here to indicate how much more pixels are following with an alpha of 0 */
    48 				/* src->r is 'misused' here to indicate how much more pixels are following with an alpha of 0 */
    49 				int skip = UnScaleByZoom(src->r, zoom);
    49 				int skip = UnScaleByZoom(src->r, zoom);
    50 
    50 
    51 				dst  += skip;
    51 				dst  += skip;
    52 				/* Make sure the anim-buffer is cleared */
       
    53 				memset(anim, 0, skip);
       
    54 				anim += skip;
    52 				anim += skip;
    55 				x    += skip - 1;
    53 				x    += skip - 1;
    56 				src  += ScaleByZoom(1, zoom) * skip;
    54 				src  += ScaleByZoom(1, zoom) * skip;
    57 				continue;
    55 				continue;
    58 			}
    56 			}