Re: [AD] support for toggling fullscreen |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Fri, 2010-02-05 at 11:49 -0500, Evert Glebbeek wrote:
> On 5 Feb 2010, at 11:13 , Elias Pschernig wrote:
> > The implementation for Linux is already done and I can probably do it
> > for OSX if nobody else wants to. Windows could just ignore it for now
> > and not allow toggling until someone figures out how to code it.
>
> In principle I'm fine with looking into the OS X port for something
> like this (although if you want to do the work instead, go ahead), but
> I don't think it's easy.
> Quite why fullscreen modes work so differently in the OS X port than
> windowed modes I don't know (or don't remember if I did know at some
> point). I just did a quick test to see if it's possible to switch a
> context that was created for a windowed mode program to full screen
> and it didn't work.
> What could probably be done is to create a new fullscreen context for
> the window (shared), then destroy the old context and the window,
> switch the display (if needed) and finish off as in the normal
> fullscreen setup.
>
I just noticed that Apple is using fullscreen all the timer after all.
E.g. if I use "quick look" on any file in Finder it has a fullscreen
button. Same in itunes. In both cases it simply fades the whole screen
to black without ever changing modes. Also if I enable the thing that
moving to screen edges does various stuff it can draw to the whole
screen and not just a window.
Neither Adobe Flash Player nor those OSX apps are open source of course
so can't look how they do it but at least I'm sure now with it being
such a standard thing also in OSX there should be some example code for
it around somewhere.
But yes, I wouldn't be surprised if behind the scenes it requires
creating a new OpenGL context which means it will not be so easy to
implement :/
--
Elias Pschernig <elias.pschernig@xxxxxxxxxx>