RE: [AD] First try to change GFX_SAFE fb behaviour.

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


> Can't the behavior you are looking for be emulated by writing
> `set_color_depth(desktop_color_depth())'? If this is possible, then I
> think it would give the programmer a bit more control: If his program
> really requires a specific color depth, then he can force
> `set_gfx_mode()' to use that; otherwise he can let it pick the desktop's
> color depth since that is guaranteed to success.

This assumes desktop_color_depth to return something meaningful and safe
every time, even in DOS for instance.
If it is changed to return, say, 8 in DOS, this might be a way to do it.
But I don't really see the point of forcing a color depth when you ask
for GFX_SAFE ...

-- 
Lyrian 



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