Re: [AD] ModeX fix

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


On Sat, 2005-06-18 at 13:20 +0200, Evert Glebbeek wrote:
> On Saturday 18 June 2005 10:45, Elias Pschernig wrote:
> > Thinking about it again, I'd rather put the uses of it between #ifdef
> > ALLEGRO_DOS, and not make it available at all on other platforms. That
> > also conforms to the docs who have it in the DOS specifics.
> 
> No can do, since all UNIX systems define GFX_MODEX and the user has no good 
> way to check based on GFX_MODEX alone if split_modex_screen() works or 
> not.

Yes, we would check for ALLEGRO_DOS (that it also is possibly available
in some other cases doesn't matter..)

> It will make the ModeX driver behave differently in DOS than it does in 
> Linux and other UNICES (where it doesn't actually work anyway). If 
> anything, the docs should be fixed to list split_modex_screen() for all 
> platforms that have a GFX_MODEX driver.
> 

Well, my reasoning is, the function is deprecated from any way you look
at it, the docs never allowed to use it outside of DOS, so why bother.
Simply put checks for ALLEGRO_DOS into the test program and the
examples, and done.

-- 
Elias Pschernig





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