SDL_WM_ToggleFullScreen() on Windows

…ok, I know it doesn’t work.

Is there a technological reason, or has this just never been implemented?
Does it work with the windib driver and not directx? How about MacOS or
BeOS?

For platforms that don’t support ToggleFullScreen directly, can SDL
(or at least the application) fall back to calling SDL_SetVideoMode() with
the same parameters (plus/minus SDL_FULLSCREEN)?

If it hasn’t been implemented, I’ll take a stab at it, but someone please
clue me in on the answers to those questions.

Thanks,
–ryan.

For platforms that don’t support ToggleFullScreen directly, can SDL
(or at least the application) fall back to calling SDL_SetVideoMode() with
the same parameters (plus/minus SDL_FULLSCREEN)?

I use it, it works under Win, for others platforms, I don’t know

Murlock

“Ryan C. Gordon” a ?crit dans le message news:
Pine.LNX.4.21.0105270132530.14473-100000 at gemini.verizon.net…>

…ok, I know it doesn’t work.

Is there a technological reason, or has this just never been implemented?
Does it work with the windib driver and not directx? How about MacOS or
BeOS?

For platforms that don’t support ToggleFullScreen directly, can SDL
(or at least the application) fall back to calling SDL_SetVideoMode() with
the same parameters (plus/minus SDL_FULLSCREEN)?

If it hasn’t been implemented, I’ll take a stab at it, but someone please
clue me in on the answers to those questions.

Thanks,
–ryan.

…ok, I know it doesn’t work.

Is there a technological reason, or has this just never been implemented?
Does it work with the windib driver and not directx? How about MacOS or
BeOS?

The semantics of ToggleFullScreen are such that the base address, format,
and contents of the display memory do not change. In addition, all surfaces
stay valid and do not lose their contents. I don’t know of a way to do
this with DirectX or MacOS. This function is implemented on BeOS.

For platforms that don’t support ToggleFullScreen directly, can SDL
(or at least the application) fall back to calling SDL_SetVideoMode() with
the same parameters (plus/minus SDL_FULLSCREEN)?

Yes. If you don’t need the semantics of ToggleFullScreen, I recommend
doing this in the first place.

See ya!
-Sam Lantinga, Lead Programmer, Loki Software, Inc.