Title: Running in windowed mode Post by: ravalox on June 20, 2004, 10:50:16 pm I'm running linux and I got UQM going, the first time I ran it it ran in a window. Now it runs full screen yet only occupies a windows worth of space on it. Everything runs naturally behind it, so I don't really see that there is some catchall limitation that should make it have to be fullscreen, unless there are things about SDL I don't understand. So, is there a way to restore the windowed play?
Title: Re: Running in windowed mode Post by: Zeep-Eeep on June 20, 2004, 11:02:43 pm There are three things I can think of to look at.
1. The option "--res" which takes a width and height argument. This changes your game resolution. So try uqm --res=640X480 2. The full screen option is "-f". Make sure you do not use this, if you want to run in window mode. 3. There is an option to use or not use OpenGL. Which is "-o". This is off by default, but try using it with and without to see if that helps. Title: Re: Running in windowed mode Post by: Michael Martin on June 21, 2004, 09:22:47 am It's also worth noting that depending on how X is configured, you might not be allowed to change your own screen resolution. If this is the case, when UQM asks its graphics library (SDL) to give it a fullscreen of a certain size, the resolution won't change and it will just sit centered in the "full screen" without using all the space.
I'm not enough of an X guru to know exactly what options cause this or how to fix it, though. Title: Re: Running in windowed mode Post by: meep-eep on June 21, 2004, 05:38:04 pm To play the game in real full-screen, there needs to be a mode section for the video mode you are using, with the amount of bpp you are using in your /etc/X11/XF86Config.
A small section of my XF86Config: Code: Section "Screen" Identifier "Screen 1" Device "Diamond Viper 770" Monitor "Iiyama MT-0017" # DefaultDepth 8 DefaultDepth 16 # DefaultDepth 24 Subsection "Display" Depth 8 Modes "1152x864" "1024x768" "800x600" "640x480" ViewPort 0 0 EndSubsection Subsection "Display" Depth 15 Modes "1152x864" "1024x768" "800x600" "640x480" ViewPort 0 0 EndSubsection Subsection "Display" Depth 16 Modes "1152x864" "1024x768" "800x600" "640x480" ViewPort 0 0 EndSubsection Subsection "Display" Depth 24 Modes "1152x864" "1024x768" "800x600" "640x480" ViewPort 0 0 EndSubsection Subsection "Display" Depth 32 Modes "1152x864" "1024x768" "800x600" "640x480" ViewPort 0 0 EndSubsection EndSection ViewPort can be left out, and the first mode in the "Modes" line for the DefaultDepth is the default mode, but the largest resolution is used for the virtual screen resolution. You may want to add modes for 1280x1024 or others. See 'man XF86Config' for more info. Note that this example is for XFree86 4.x. If you're still using a 3.x server, some things might be slightly different. I don't know why you don't get uqm in a window by default. I have never seen such a problem before. |