More 24bit optimizations (was: a just another stupid newbie :)

Keith Packard keithp@keithp.com
Sat, 13 Dec 2003 21:01:29 -0800


Around 14 o'clock on Dec 14, Jaymz Julian wrote:

> @@ -1281,7 +1570,7 @@ fbComposite (CARD8      op,
>  	    x_src = pbox->x1 - xDst + xSrc;
>  	    x_msk = pbox->x1 - xDst + xMask;
>  	    x_dst = pbox->x1;
> -	    if (maskRepeat)
> +	    if (maskRepeat && pMask->pDrawable->height > 1)
>  	    {
>  		y_msk = mod (y_msk, pMask->pDrawable->height);
>  		if (h_this > pMask->pDrawable->height - y_msk)
> @@ -1296,7 +1585,7 @@ fbComposite (CARD8      op,
>  	    while (w)
>  	    {
>  		w_this = w;
> -		if (maskRepeat)
> +		if (maskRepeat && pMask->pDrawable->width > 1)
>  		{
>  		    x_msk = mod (x_msk, pMask->pDrawable->width);
>  		    if (w_this > pMask->pDrawable->width - x_msk)

What are these two changes for?

-keith