SDL_FULLSCREEN: proposed FAQ entry

After noticing the 20th or so mail on this list, I wrote a little
entry for the FAQ. This is a quick summary, so please comment is something
important is missing

– cut here –
Q:

When I specify SDL_FULLSCREEN in X11, the screen goes black and my window
is centered in the middle, instead of covering the whole screen!

A:

X needs to be able to switch to the desired resolution. For this to
work, you need to have the resolution listed in the ‘Modes’ line in your
XFree86Config file (and your Monitor must support it).

The following example is taken from my config for XFree86-4.0.1, but
3.3.x is similiar.

Example:

Section "Screen"
Identifier "Screen 1"
Device "3dfx"
Monitor "Samsung LCD"
DefaultDepth 16

Subsection "Display"
    Depth       8
    Modes       "1280x1024" "1024x768" "800x600" "640x480" "320x240"
    ViewPort    0 0
EndSubsection
Subsection "Display"
    Depth       16
    Modes       "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort    0 0
EndSubsection

EndSection

Note the different entries for 8 & 16 bit screendepth. I.e. the
320x240 resolution is not available when X is started with 16bit
depth (the default).

To test these entries, restart X after you modified XF86Config and
press ctrl-alt-plus and ctrl-alt-minus to cycle through the resolutions.
– cut here –

  • Andreas–
    Check out my 3D lightcycle game: http://www.gltron.org
    A 0.60 preview/beta for win32/mac is available NOW!
    More than 100’000 Downloads of the last version (0.59)