Real Fullscreen Mode

Hey folks,

I just modified my program so it would display in fullscreen mode,
but it doesn’t. I mean in fact it does, but the bitmap I wanted to
draw to the screen appears only in the upper corner(0,0) of an area
which is only 800x600 pixels.
In windowed mode, it is the same, but here it’s right. I thinke the
only thing the SDL_FULLSCREEN does is to darken the rest of the
screen while the program is running.
Can anybody tell me how to switch the resolution of my X11 through
the program so it runs in real fullscreen mode?

Thanks
Olli

It can only switch to those resolutions which are defined in the
XF86Config. E.g. in mine I have:


Subsection "Display"
Depth 16
Modes “1024x768” “800x600” “640x480” "320x200"
ViewPort 0 0
Virtual 1024 768
EndSubsection

Check if the mode you want is correctly defined and selected.

All the best,
robOn Wed, Feb 23, 2000 at 03:38:01PM +0100, Oliver van Porten wrote:

Can anybody tell me how to switch the resolution of my X11 through
the program so it runs in real fullscreen mode?

Sometimes the best way to configure X to allow different screen modes is
to use their XF86Setup tool (Capital S).
don’t use XF86setup (lowercase s) unless you want a text mode version.

On the Mode selection section of the configuration tool you must pick all
the modes you want to have defined for it.

DaveOn Wed, 23 Feb 2000, Oliver van Porten wrote:

Hey folks,

I just modified my program so it would display in fullscreen mode,
but it doesn’t. I mean in fact it does, but the bitmap I wanted to
draw to the screen appears only in the upper corner(0,0) of an area
which is only 800x600 pixels.
In windowed mode, it is the same, but here it’s right. I thinke the
only thing the SDL_FULLSCREEN does is to darken the rest of the
screen while the program is running.
Can anybody tell me how to switch the resolution of my X11 through
the program so it runs in real fullscreen mode?

Thanks
Olli

Oliver van Porten wrote:

Hey folks,

I just modified my program so it would display in fullscreen mode,
but it doesn’t. I mean in fact it does, but the bitmap I wanted to
draw to the screen appears only in the upper corner(0,0) of an area
which is only 800x600 pixels.
In windowed mode, it is the same, but here it’s right. I thinke the
only thing the SDL_FULLSCREEN does is to darken the rest of the
screen while the program is running.
Can anybody tell me how to switch the resolution of my X11 through
the program so it runs in real fullscreen mode?

Thanks
Olli

Hi Olli. I think you couldn’t. Jus X11 architecture does not allow to
switch modes in runtime on account of X11 is server so switching
resolution requred to hold all user contexts with their respective
preferences or somethin. I think SDL_FULLSCREEN is only for
compatibility purposes an of cource for generalized API . Jus some oses
like win32 support fullscreen thru DX.–
With best regards Razor.X.Jackie
"The choise is yours… walk now and live or stay and die"

hi`

on Linux SDL makes use of the VidMode extension where available to
switch between resolutions that have an entry in your XF86Config file.
It then removes the border/ decoration of the window and resizes it to
the appropiate size. When there is no available mode to switch to it
will pick the next bigger one, center the ‘window’ and blank the rest.

razorjack wrote:>

Oliver van Porten wrote:

Hey folks,

I just modified my program so it would display in fullscreen mode,
but it doesn’t. I mean in fact it does, but the bitmap I wanted to
draw to the screen appears only in the upper corner(0,0) of an area
which is only 800x600 pixels.
In windowed mode, it is the same, but here it’s right. I thinke the
only thing the SDL_FULLSCREEN does is to darken the rest of the
screen while the program is running.
Can anybody tell me how to switch the resolution of my X11 through
the program so it runs in real fullscreen mode?

Thanks
Olli

Hi Olli. I think you couldn’t. Jus X11 architecture does not allow to
switch modes in runtime on account of X11 is server so switching
resolution requred to hold all user contexts with their respective
preferences or somethin. I think SDL_FULLSCREEN is only for
compatibility purposes an of cource for generalized API . Jus some oses
like win32 support fullscreen thru DX.

With best regards Razor.X.Jackie
"The choise is yours… walk now and live or stay and die"


Daniel Vogel My opinions may have changed,
666 @ http://grafzahl.de but not the fact that I am right

Hey razorjack,
I think you are mistaken, if you mean that X cannot switch it’s resolution
once running. Ever tried to press ctrl-alt-[-/+] ? The SDL_FULLSCREEN does
switch modes, but you need to have the desired modes in your XF86config.
It might be that you need the memory for both the old desktopmode and the
new sdl-mode on your graphicscard, don’t know, I don’t normaly run mine at
it’s limit (no, it’s only 4MB ;).

All the best,
robOn Mon, Feb 28, 2000 at 02:09:59PM +0300, razorjack wrote:

Hi Olli. I think you couldn’t. Jus X11 architecture does not allow to
switch modes in runtime on account of X11 is server so switching
resolution requred to hold all user contexts with their respective
preferences or somethin. I think SDL_FULLSCREEN is only for
compatibility purposes an of cource for generalized API . Jus some oses
like win32 support fullscreen thru DX.

Actually I get Fullscreen modes in linux with X86. All you have to do is
set up XF86Config to have the appropriate modelines for the modes you want
to fullscreen. You also need to be able to change from one mode to the
next. Look in your X documentation…

DaveOn Mon, 28 Feb 2000, razorjack wrote:

Oliver van Porten wrote:

Hey folks,

I just modified my program so it would display in fullscreen mode,
but it doesn’t. I mean in fact it does, but the bitmap I wanted to
draw to the screen appears only in the upper corner(0,0) of an area
which is only 800x600 pixels.
In windowed mode, it is the same, but here it’s right. I thinke the
only thing the SDL_FULLSCREEN does is to darken the rest of the
screen while the program is running.
Can anybody tell me how to switch the resolution of my X11 through
the program so it runs in real fullscreen mode?

Thanks
Olli

Hi Olli. I think you couldn’t. Jus X11 architecture does not allow to
switch modes in runtime on account of X11 is server so switching
resolution requred to hold all user contexts with their respective
preferences or somethin. I think SDL_FULLSCREEN is only for
compatibility purposes an of cource for generalized API . Jus some oses
like win32 support fullscreen thru DX.

With best regards Razor.X.Jackie
"The choise is yours… walk now and live or stay and die"