On Mon, Jan 3, 2011 at 11:17 AM, Thomas Fjellstrom
<tfjellstrom@xxxxxxxxxx> wrote:
>
> Basically, if the al_create_display succeeds, I destroy the previous
> fullscreen display (and it must not mess up the fullscreen display just
> created). If it failed, I keep the previous fullscreen display.
I would suggest not doing that imo ;) so full of wrong. just keep the same
display object. if the mode change isn't working, lets get it fixed, rather
than making bodges like that, that we have to support.
So what should happen when you call al_create_display while a fullscreen display does still exist (on the same adapter)?
> I guess for multi-monitor, the check has to be updated to not restore the
> mode if there's another fullscreen *on the same monitor*. I guess it's just
> another if-clause which checks the monitor the display is on. (No idea
> which field in ALLEGRO_DISPLAY does tell that though.)
My new changes make it so display->adapter stores the allegro virtual adapter
id. So I suppose that'd work, just compare the adapters, and ignore the mode
restore if theres another display already open, but as I said above, this
really shouldn't be an issue.