Re: [AD] X mode restoring.

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


On January 3, 2011, Matthew Leverton wrote:
> On Mon, Jan 3, 2011 at 3:55 AM, Elias Pschernig
> 
> <elias.pschernig@xxxxxxxxxx> wrote:
> > If you mean the part I added recently, it's to make this work:
> > 
> > new_display = al_create_display(...);
> > if (new_display) {
> >     al_destroy_display(old_display);
> > }
> 
> Is there a reason why Allegro doesn't explicitly destroy the existing
> full screen display if another one is set on the same adapter
> (regardless if it exceeds or not)? Sans documentation, that is how I
> would expect it to work.

They really aren't all that special. A display is a display regardless. Or 
thats how I see it. Let the user create more than one if they want. It just 
might not behave in an expected manner (ie: undefined).

having allegro destroy the user's display on them might lead to more segfaults 
and bug reports than anything else.

> (Sorry if this is kicking around a prior dead topic.)
> 
> --
> Matthew Leverton
> 
> ---------------------------------------------------------------------------
> --- Learn how Oracle Real Application Clusters (RAC) One Node allows
> customers to consolidate database storage, standardize their database
> environment, and, should the need arise, upgrade to a full multi-node
> Oracle RAC database without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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