|
From: | Boris Letocha |
Subject: | Re: Re: Another bug in grayscale renderer |
Date: | Thu, 1 Jun 2000 11:12:03 +0200 |
Hi David,
I looked if my fixes are correctly updated. But I found mistake.
old with bug:
if ( ras.outline.flags & ft_outline_even_odd_fill )
{
if (coverage < 0)
coverage = -coverage;
while (coverage >= 512)
coverage -= 512;
if (coverage > 256)
coverage = 0;
else if (coverage == 256)
coverage = 255;
}
your todays with mistake:
if ( ras.outline.flags & ft_outline_even_odd_fill )
{
if (coverage < 0)
coverage = -coverage;
while (coverage >= 512)
coverage = 512-coverage; // <------------- here is mistake!!!!
if (coverage > 256)
coverage = 0;
else if (coverage == 256)
coverage = 255;
}
my fix - hopefully without bugs :-) :
if ( ras.outline.flags & ft_outline_even_odd_fill )
{
if (coverage < 0)
coverage = -coverage;
while (coverage >= 512)
coverage -= 512;
if (coverage > 256)
coverage = 512-coverage; // <--------- here is only change
else if (coverage == 256)
coverage = 255;
}
Boris
PS: I must say that you are working fast as hell ...
[Prev in Thread] | Current Thread | [Next in Thread] |