Re: [Tuxracer-devel] Fullscreen mode on a Voodoo-1/2
Status: Beta
Brought to you by:
jfpatry
From: Steve B. <sjb...@ai...> - 2000-03-02 04:03:19
|
Jasmin Patry wrote: > Hmm. First, try setting fullscreen back to 0. The fullscreen option is > perhaps a bit misleading; all it does is activate game mode in GLUT, and > as far as I can tell all that does under Linux is make the window the > same size as the screen... Yep - I was just looking at the code - I think you're right. > Well, I remember getting it to work on a Voodoo-2 without any special > hacks -- I think I just set the resolution and the environment variables > and it worked fine. That was a while ago, though, and Tux Racer has > changed a fair bit since then. Two things you DEFINITELY need are: 1) Make sure that the window comes up nailed to the screen - so you don't have to give it an initial position with the mouse. 2) Every frame or so do a: glutWarpPointer(width/2,height/2); - this prevents the mouse pointer from being accidentally moved outside the underlying X window - resulting in a loss of keyboard focus - and a serious problem to recover from! > BTW: Enjoy your vacation! Thanks! -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |