Re: [AD] Grabber default video mode

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


On Fri, 2005-06-10 at 15:32 -0500, Matthew Leverton wrote:
> Hello,
> 
> A while ago, I sent a patch (never applied) that made the grabber
> default to the desktop resolution (fullscreen) if not otherwise
> specified. There were no negative comments, other than some people
> suggested that it should default to windowed.
> 
> Attached is a patch that changes the default behavior of the grabber:
> 
> * Default color depth is retrieved from the desktop if possible
> * Default mode is windowed
> * If fullscreen is specified, then desktop resolution is used by default
> 
> If neither windowed nor fullscreen is specified and the setting of the
> resolution fails, then a second pass is taken using GFX_AUTODETECT.
> This should make it so non-windowed platforms default to full screen.
> 
> Under DOS (or non windowed platforms), nothing should be different.
> But, be warned that it's only been tested on windowed platforms where
> the default modes actually worked.
> 

Thanks, a patch like this really should have been applied long ago. I
wonder why I never thought of doing something like it myself (I instead
have an alias grabber=grabber -w in my startup scripts :P).

-- 
Elias Pschernig





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