Re: [AD] patches for color.c and graphics.c |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] patches for color.c and graphics.c
- From: Andrei Ellman <ae-a-alleg@xxxxxxxxxx>
- Date: Sun, 24 Dec 2006 13:14:27 +0100
- Organization: Wacko Software
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.