[AD] New mode selector, or get_gfx_mode_list(), broken [djgpp, possibly others]

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


Hi,

Unfortunately, the mode selector that shipped with 3.9.38 (and is
currently in CVS) is, somehow, broken. I have confirmed this under
DJGPP, and others have confirmed under at least Watcom. Whether this is
a DOS-specific thing, or affecting many other platforms, I don't know.

The programs I tested were ex3d and exzbuf, and the test program as
well. These all gave me severe problems (from bringing up a windows
dialog box to hanging the system); I rarely (if ever) get these sorts of
crashes with Allegro.

Interestingly, these crashes only occur on one of my systems, and not
the other:

Crashes occur on:
  PIII-500, 0.5Gb RAM, Rage Fury AGP 32Mb graphics

but not on:
  PIII-450, 192Mb RAM, NVidia TNT2 M64 32Mb graphcis

In both cases, I am running bash under win98, using DJGPP 2.03 (which
has gcc 2.95.3), and the problems occur with the 3.9.38 release and
current CVS.

When I changed src/modesel.c back to CVS revision 1.6 (the last one
before it was rewritten), the crashes stopped occuring. Therefore, the
problem is caused either directly by code in src/modesel.c, or possibly
by get_gfx_mode_list(). I will experiment a little, and try and fix
this.

BTW, I really don't like the interface to get_gfx_mode_list(). If I need
to poke at it, would anybody mind if I rewrote it? (to return a linked
list).

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



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