freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Split_Cubic and gray_split_cubic


From: Werner LEMBERG
Subject: [ft-devel] Split_Cubic and gray_split_cubic
Date: Sat, 09 Sep 2006 09:09:52 +0200 (CEST)

Three years ago I've written this:

> Split_Cubic (from ftraster.c) and gray_split_cubic (from ftgrays.c)
> are not identical -- I was thinking about moving them to another
> file to share the code (as suggested by Graham two years ago).
> Example:
> 
>   ftraster.c:
>     base[2].x = a = ( a + c + 1 ) >> 1;
>     base[4].x = b = ( b + c + 1 ) >> 1;
>     base[3].x = ( a + b + 1 ) >> 1;
> 
>   ftgrays.c:
>     base[2].x = a = ( a + c ) / 2;
>     base[4].x = b = ( b + c ) / 2;
>     base[3].x = ( a + b ) / 2;
> 
> I can't find a hint in the ChangeLog file why we have this
> difference -- or is it an oversight that ftraster hasn't been
> updated accordingly?

This remark is still valid today: Why are coordinates rounded in
ftraster.c but not in ftgrays.c?


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]