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

Keith Packard <[email protected]>
Newsgroups gmane.comp.freedesktop.xserver
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.