SDL_WM_ToggleFullScreen

Is support for SDL_WM_ToggleFullScreen planned for win32? What would be
involved in implimenting it? It would really, really be a useful
feature…

Is there a reason SDL_WM_ToggleFullScreen doesn’t work in Windows? I’m a
newbie so go easy on me. It doesn’t seem to be in the faqs.

Kieran Farrell
:wq_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Is there a reason SDL_WM_ToggleFullScreen doesn’t work in Windows?

Yes.
The semantics are such that the screen data address doesn’t change when
you go from windowed to fullscreen. This isn’t possible under DirectX.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

As far I remember this is supported only under Linux and under BeOS
(experimental support)

Regards, Pavel Kanzelsberger> ----- Original Message -----

From: Kieran Farrell [mailto:kjfarrell@hotmail.com]
Sent: Thursday, April 04, 2002 9:24 AM
To: sdl at libsdl.org
Subject: [SDL] SDL_WM_ToggleFullScreen

Is there a reason SDL_WM_ToggleFullScreen doesn’t work in Windows? I’m a
newbie so go easy on me. It doesn’t seem to be in the faqs.

Kieran Farrell
:wq


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hi Sam,
Then why are there various DX demos that show DirectX switching from
full-screen to Windowed mode and back or am I missing something here?

Thanks,

Dominique.

Sam Lantinga wrote:>>Is there a reason SDL_WM_ToggleFullScreen doesn’t work in Windows?

Yes.
The semantics are such that the screen data address doesn’t change when
you go from windowed to fullscreen. This isn’t possible under DirectX.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Of course, I can’t think of one single platform besides X11 where it IS
possible, but if there is another I’d love to hear about it!On Thu, Apr 04, 2002 at 12:25:50AM -0800, Sam Lantinga wrote:

Is there a reason SDL_WM_ToggleFullScreen doesn’t work in Windows?

Yes.
The semantics are such that the screen data address doesn’t change when
you go from windowed to fullscreen. This isn’t possible under DirectX.


Joseph Carter Hey, that’s MY freak show!

it’s too bad most old unices turned out y2k compliant
because it means people will STILL BE RUNNING THEM in 30 years
=p
it would have been so much nicer if y2k effectively killed off
hpux, aix, sunos, etc ;>
Knghtbrd: since when are PH-UX, aches, and solartus “old”?

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020404/79474892/attachment.pgp

Then why are there various DX demos that show DirectX switching from
full-screen to Windowed mode and back or am I missing something here?

Because you can toggle windowed/fullscreen, you just can’t guarantee that
the surface (specifically, surface->pixels, but other things, like whether
you get access to video RAM, etc) won’t change.

Under X11, SDL changes the screen resolution to whatever and centers the
window in it, so it looks like you went fullscreen, but you’re still
using the same window. If you need to switch the mode universally, call
SDL_SetVideoMode() again with the new parameters.

If you can accept that you may or may not have a new surface, this code
might help:
http://www.libsdl.org/pipermail/sdl/2001-May/036146.html

(and I’d still like patches to that code, if anyone improves it.)

–ryan.