Re: [AD] small fix in the test program |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, 2004-01-04 at 14:43, Eric Botcazou wrote:
> > Going to apply this small fix, for a problem probably introduced when
> > set_gfx_mode was modified to clear allegro_error some time ago.
>
> Clearing allegro_error on success may be questionable in the first place.
> Does anyone know why this was introduced?
>
This seems to be where it was added (just looked at bit at SF):
http://cvs.sourceforge.net/viewcvs.py/alleg/allegro/src/graphics.c?r1=1.39&r2=1.40
> /* now to the interesting part: let's try to find a graphics driver */
> usetc(allegro_error, 0);
Removing the above line also seems to fix test.. So probably that's what
should be done instead.
--
Elias Pschernig <elias@xxxxxxxxxx>