Resize after ToggleFullScreen?

Hi,
i wonder that I receive no resize event after calling
SDL_WM_ToggleFullScreen (it returs with success, Linux platform).
I do receive a ‘expose’ event, but that doesn’t tell me the new resolution
(width and height).

I need to know the new resolutionn, can someone help?–
Greets, Mark

uOn Wed, 12 Dec 2001, Mark Seuffert (Pirates) wrote:

Hi,
i wonder that I receive no resize event after calling
SDL_WM_ToggleFullScreen (it returs with success, Linux platform).
I do receive a ‘expose’ event, but that doesn’t tell me the new resolution
(width and height).

I need to know the new resolutionn, can someone help?

Unless you change it, it will remain the same. (AFAIK).

Mads–
Mads Bondo Dydensborg. @Mads_Bondo_Dydensbor
I don’t even consider working for MS Shops, or shops with extensive MS
deployment anymore. These companies are rape victims, and too self-abusive to
get away. Why waste time trying to help those who will not help themselves?
- David C. Manchester

Hai Mads!

Mads Bondo Dydensborg schrieb am 12 Dec 2001, (you wrote):

uOn Wed, 12 Dec 2001, Mark Seuffert (Pirates) wrote:

Hi,
i wonder that I receive no resize event after calling
SDL_WM_ToggleFullScreen (it returs with success, Linux platform).
I do receive a ‘expose’ event, but that doesn’t tell me the new
resolution (width and height).

I need to know the new resolutionn, can someone help?

Unless you change it, it will remain the same. (AFAIK).

That’s the MS windows behaviour, when switching from windowed mode to
fullscreen. Here on my Linux test box (Suse 7.3 with XFree, KDE2 and
several other WM)… toggle fullscreen results in:

  • your SDL X-window is becoming the size of the full desktop
    (the X resolution will not change)
  • becoming first window in Z-order
  • no window decoration/titlebar or borders
  • mouse cursor still visible

I have tested with different X11-Server/WM. Thx, Mark

PS: I would highly appreciate that toggle fullscreen does not change the
window resolution, but the X-server resolution. I wonder if this is
possbile too?

uOn Wed, 12 Dec 2001, Mark Seuffert (Pirates) wrote:

Hi,
i wonder that I receive no resize event after calling
SDL_WM_ToggleFullScreen (it returs with success, Linux platform).
I do receive a ‘expose’ event, but that doesn’t tell me the new resolution
(width and height).

I need to know the new resolutionn, can someone help?

Unless you change it, it will remain the same. (AFAIK).

If SDL_WM_ToggleFullScreen() succeeds, not only is the resolution the same,
but the screen surface pointer also doesn’t change. It’s the semantics of
the function call. See lots of previous posts for details.

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

That’s the MS windows behaviour, when switching from windowed mode to
fullscreen. Here on my Linux test box (Suse 7.3 with XFree, KDE2 and
several other WM)… toggle fullscreen results in:

  • your SDL X-window is becoming the size of the full desktop
    (the X resolution will not change)
  • becoming first window in Z-order
  • no window decoration/titlebar or borders
  • mouse cursor still visible

I have tested with different X11-Server/WM. Thx, Mark

PS: I would highly appreciate that toggle fullscreen does not change the
window resolution, but the X-server resolution. I wonder if this is
possbile too?

It does, if the resolutions are defined in your X config file.

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

I need to know the new resolutionn, can someone help?

Unless you change it, it will remain the same. (AFAIK).

That’s the MS windows behaviour, when switching from windowed mode to
fullscreen. Here on my Linux test box (Suse 7.3 with XFree, KDE2 and
several other WM)… toggle fullscreen results in:

Hmm. I don’t know about windows - I last ran it in 1997 - but on my linux
boxes, the resolution of X is changed to the smallest that will hold the
size of the current window. But, the “window resolution” is not
changed. SDL will emulate it if needed.

PS: I would highly appreciate that toggle fullscreen does not change the
window resolution, but the X-server resolution. I wonder if this is
possbile too?

It is, if you have the appropiate resolutions in your X setup.

MadsOn Wed, 12 Dec 2001, Mark Seuffert (Pirates) wrote:


Mads Bondo Dydensborg. @Mads_Bondo_Dydensbor
Before we’d usually say, there is a deep rumbling sound of penguins. Now
it’s time to begin with: The earth is quaking, hell yeah the penguins are
here!!

Sam Lantinga schrieb am 12 Dec 2001, (you wrote):

PS: I would highly appreciate that toggle fullscreen does not change the
window resolution, but the X-server resolution. I wonder if this is
possbile too?

It does, if the resolutions are defined in your X config file.

Oops, thx for all helping on this topic, resize is definitely unnecessary.
I was kinda confused about the TRUE return value SDL_WM_ToggleFullScreen()
and forgot that I did fresh install my Linux, the XFree conf was crappy
indeed!

Is there a possibility to find out that real fullscreen is not supported
but emulated from SDL?–
Greets, Mark

Is there a possibility to find out that real fullscreen is not supported
but emulated from SDL?

Query for the available fullscreen modes with SDL_ListModes().

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