Re: [AD] Small demo fix

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


In reply to Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx>:
>Ah, yes, I forgot about that (too used to GFX_SAFE not failing :). But 
>wouldn't it be better for GFX_SAFE to return with failure? The user 
>program might have some unsaved data or opened files which need correct 
>treatement before closing.

If you don't want to quit if you can't set a graphics mode, don't call
GFX_SAFE. The driver's description in the docs makes it clear that this
driver is just for getting some sort of graphics so that you can pop up
a dialog, etc.

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



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