Fullscreen mode

Hi everyone.

    Im having trouble with the full screen mode in X. Im using rehat

6.0 with a RIVA TNT2 server.
The problem lies when i try to run a program in fullscreen. The screen
goes black like it should but instead of getting the scaled image I only
get a something the size of the resolution I choose for the program and
that is farily small (320x240) for the resolution im using in X (1024 x
768). Does it have something to do with the Xserver? I had a S3-Virge
before and it worked perfectly (SDL-0.10).

Ive also been reading in the list of posible kernel problems causing

some trouble. I upgraded to kernel 2.2.12. Can that be the source of the
problem?

                Thanks for your help.-----------------------

Carlos Daniel Pimentel Flores
@Carlos_Daniel_Piment

Carlos Daniel Pimentel Flores wrote:

Hi everyone.

    Im having trouble with the full screen mode in X. Im using rehat

6.0 with a RIVA TNT2 server.
The problem lies when i try to run a program in fullscreen. The screen
goes black like it should but instead of getting the scaled image I only
get a something the size of the resolution I choose for the program and
that is farily small (320x240) for the resolution im using in X (1024 x
768). Does it have something to do with the Xserver? I had a S3-Virge
before and it worked perfectly (SDL-0.10).

Your X-Server has to have 320x240 mode enable in XF86Config.

Hello everybody,

I just wonder how I can go in full screen mode in SDL without diming
the other screens (macosx).

When I setup opengl in fullscreen mode, my other screens become
black, but I want to keep them normal.

Is there any way?

Best regards–
Kuon
Programmer and sysadmin.

“Computers should not stop working when the users’ brain does.”

I just wonder how I can go in full screen mode in SDL without diming
the other screens (macosx).

When I setup opengl in fullscreen mode, my other screens become
black, but I want to keep them normal.

Is there any way?

There’s a hack for this.

Set the environment variable SDL_SINGLEDISPLAY before calling
SDL_SetVideoMode():

SDL_putenv(“SDL_SINGLEDISPLAY=1”);
SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN);

Then it will only blank (“capture”) on window, the one with the menu bar.

You won’t be able to access the other screens, since the input will be
locked to the one display, but at least you’ll be able to see your IM
client or debug output still.

This isn’t really a recommended feature of SDL, it’s sort of in there as
a compromise, and probably will go away for SDL 1.3, if it hasn’t already.

–ryan.

You won’t be able to access the other screens, since the input will be
locked to the one display, but at least you’ll be able to see your IM
client or debug output still.

This isn’t really a recommended feature of SDL, it’s sort of in
there as
a compromise, and probably will go away for SDL 1.3, if it hasn’t
already.

I’m not in a hurry, as I can wait for 1.3, game is still in early
stage. But basically, we want to allow our users to have same control
over the computer as if it was in window mode.

For example, in world of warcraft, you can’t, and you must play in
window mode to be able to use your IM client, watch a movie, control
what’s happen in teamspeak…
And window mode is a bit annoying, because:

  • You have desktop gama, and it’s ugly. (way too bright, and no I
    don’t want to change my desktop gama each time I play the game)
  • You have window title bar + menu bar. Even if that’s really a
    little bit of the screen, it’s terribly annoying.
  • If you don’t hide your dock, you see it. (I do hide it, but some
    people don’t)

I tested your workaround and it’s fine to watch a movie or to watch
anything, but not to use anything (as you stated).

Will SDL 1.3 support this? I know it’s not really a major request,
but in WoW it drives me mad, and I really want to give that feature
to our customers.

If it needs a lot of work to support this, I’ll do my best to help.

Ho, and why I’m here. How SDL will manage Spaces in leopard? (I know
it is a super general question, but I never tried spaces myself)

Best regardsOn Jan 31, 2007, at 1:13 AM, Ryan C. Gordon wrote:


Kuon
Programmer and sysadmin.

“Computers should not stop working when the users’ brain does.”

Will SDL 1.3 support this? I know it’s not really a major request,
but in WoW it drives me mad, and I really want to give that feature
to our customers.

SDL will let you control separate displays and multiple windows…I’m
not sure on the specifics of releasing the mouse input from one
fullscreen display yet…Sam?

Ho, and why I’m here. How SDL will manage Spaces in leopard? (I know
it is a super general question, but I never tried spaces myself)

I’m not sure if Spaces look like separate displays or the desktop
dimensions change or what. I’ll have to look into it.

–ryan.

There’s a hack for this.

Set the environment variable SDL_SINGLEDISPLAY before calling
SDL_SetVideoMode():

Does this also work for Linux? I have just started using Qemu, and found that
full screen mode is split between my two monitors.

Stuart.

Does this also work for Linux? I have just started using Qemu, and found that
full screen mode is split between my two monitors.

Stuart.

Answered my own question:

DL_VIDEO_FULLSCREEN_HEAD=0

Works now except my mouse gets trapped on the sdl screen.

Stuart.