[AD] Bugs in modesel.c

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


there are two bugs in modesel.c
i'm trying to find them, but it's insidious...
maybe somebody else is more lucky
these are the descriptions:

1)it makes switch the detection of bpp8 and bpp15

it is almost certainly located in function
create_mode_list() and/or create_driver_list(), since i use
these function in gfxinfo program, and also this program
suffers from this bug.

these defines:
#define BPP_08    1
#define BPP_15    0
theorically could be excanged this way
#define BPP_08    0
#define BPP_15    1
without any effect. instead if u change them the behaviour
*seems* to become normal.

so using the second notation is a temporary workaround, until
somebody tries the real error.

2)it says that *all* gfx mode are supported for gfx drivers that
instead shouldn't work at all.

putting this at the beginning of the list
ALL_BPP(0,    0   ),
(instead of the end) seems to fix it somewhere, but brokes other
things that before worked well...


now i'm clueless and a bit confused (and tired)
i'll try again later...


"We are the Borg. You will be assimilated. Resistance is futile."
                                        The Borg, Star Trek

_.-:/°^^°\:-._.-:/°^^°\:-._          __.         ____
 - Lo'oRiS il Kabukimono -          / /|       /^___ \
Real Name: Lorenzo Petrone         / / /      / /L_/ /
e-mail: _lano_@xxxxxxxxxx          / / /      /  ___-°/
irc.azzurra.org #lano            / /_/__    /  /|__-°
digilander.iol.it/lano666       /______/|  /__/ /
^°\:-.__.-:/°^°\:-.__.-:/°^     |______|/  |__L/



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