forked from minhngoc25a/freetype2
Additional improvements to make the anti-aliasing even faster :-)
As previously, this is only noticable for sizes over 64 pixels.
This commit is contained in:
parent
5951ce9fc6
commit
433bc53fb6
|
@ -3309,18 +3309,23 @@
|
||||||
if (b < 127) b++;
|
if (b < 127) b++;
|
||||||
bits[0] = (64-x1) + (b >> 1);
|
bits[0] = (64-x1) + (b >> 1);
|
||||||
|
|
||||||
e2--;
|
if ( ras.precision > 64 )
|
||||||
while (e2 > 0)
|
|
||||||
{
|
{
|
||||||
bits += incr;
|
|
||||||
b = bits[0];
|
|
||||||
|
|
||||||
if (b < 127)
|
|
||||||
bits[0] = (Byte)(63+((b+1) >> 1));
|
|
||||||
|
|
||||||
e2--;
|
e2--;
|
||||||
|
while (e2 > 0)
|
||||||
|
{
|
||||||
|
bits += incr;
|
||||||
|
b = bits[0];
|
||||||
|
|
||||||
|
if (b < 127)
|
||||||
|
bits[0] = (Byte)(63+((b+1) >> 1));
|
||||||
|
|
||||||
|
e2--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
bits += incr*(e2-1);
|
||||||
|
|
||||||
if (x2)
|
if (x2)
|
||||||
{
|
{
|
||||||
bits += incr;
|
bits += incr;
|
||||||
|
@ -3328,7 +3333,6 @@
|
||||||
if (b < 127) b++;
|
if (b < 127) b++;
|
||||||
bits[0] = (Byte)(x2 + (b >> 1));
|
bits[0] = (Byte)(x2 + (b >> 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue