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

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


Peter Wang <tjaden@xxxxxxxxxx> wrote:

> Seems ok, except for the `error' part, which is bizarre.

ok, ok... consider it removed, it is a bit simpler to just check the
returned pointer.

another important design issue: currently the mode-selector does a whole lot
of work on re-formatting the modelists. perhaps it is a good idea to change
each list entry so that the bpp integer contains bitflags for each valid
colordepth.

so in order to check if 16bit is supported you do:

GFX_MODE *mode_list_entry;
if (mode_list_entry->bpp & BPP_16) { printf("yeepee!"); }

Sincerely Henrik Stokseth.
-----------------------------------------------------------------------
E-mail: hstokset@xxxxxxxxxx  Homepage: http://hstokset.n3.net




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