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
]
- To: <conductors@xxxxxxxxxx>
- Subject: Re: [AD] New mode selector, or get_gfx_mode_list(), broken [djgpp, possibly others]
- From: "Henrik Stokseth" <hstokset@xxxxxxxxxx>
- Date: Thu, 20 Sep 2001 15:13:49 -0700
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