Re: [AD] patches for color.c and graphics.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Robert Jr Ohannessian wrote:
I think we should switch to round(x * 255.0 / 63) (or strictly equivalent non-floating point function), to match every other reasonable graphics API (and hardware) on the planet.

Good point, but even so, I'm concerned that it might slow down some functions that would run faster if using the shifting method instead - especially on older processors.

AE.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/