Re: [AD] Small problem with driver removals

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


Peter Wang wrote:
Actually, there's no reason to map them to 0. They can be defined to their usual values. set_gfx_mode() will simply look for a driver that doesn't exist and fail.

Good point. And I think this should go for all the graphics drivers available in Unix (including X's and Linux Console's drivers). In otherwords, don't skip defining any of the drivers even if they're disabled.. always define all Unix/X drivers and let the lib sort out valid ones at runtime.

Mapping to GFX_AUTODETECT is probably not a good idea. If someone asks for GFX_VBEAF or GFX_DGA, they probably meant it.

Right. And AFAIK GFX_AUTODETECT is -1.

- Kitty Cat




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