RE: [AD] Small demo fix

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


On Sat, 13 Jan 2001, Vincent Penquerc'h wrote:
> it is more wrong for it to terminate. i wouldn't like a fopen in write
> mode to halt my program when it finds the file is read only. after all,
> the program won't be able to write to it, so it's a fatal error no ?

Hi. 

I had the same feeling the first time I thought of, but then I realized
that the only need for GFX_SAFE not failing would be for text mode
programs, which may continue without graphic visualization. However,
that's platform dependant! :-) And therefore not in the spirit of Allegro. 

IIRC usually the idea of game programming with Allegro is setting a
graphic mode, then emulating a console if needed, and playing, because
there are systems where you don't have console like output. 

If you really want to set graphic modes without aborting, then you will
have to stick with GFX_AUTODETECT. 

 Grzegorz Adam Hankiewicz   gradha@xxxxxxxxxx - http://gradha.infierno.org
 Other web pages:  http://glub.ehu.es/  -  http://welcome.to/gogosoftware/



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