Built PND, but how do I run it full screen?


Gruntfuggly

Mostly Harmless
Joined
Feb 2, 2004
Messages
1,487
Location
Brighton, UK
Website
www.zaonce.com
I've built a PND for an X11 game which runs in a window. I'm using xfce and If I right click the titlebar, I can run it full screen. How do I get it to run full screen by default?

If I run from MinMenu, I still get a titlebar - am I missing something obvious?
 
Last edited by a moderator:
I've read the Arkanoid tutorial - I only got as far as I have from using it  :)

I've tried including

 export SDL_VIDEODRIVER="omapdss"

in the launch script, but it didn't seem to make any difference?

Another problem I have is that I've updated the icons used, but they old ones seem to be cached somewhere?
 
For Trap75 I use the following to display a 400x240 SDL buffer fullscreen:


export SDL_VIDEODRIVER=omapdss
export SDL_OMAP_LAYER_SIZE=pixelperfect
See Notaz's readme for all the options.
 
Last edited by a moderator:
No, it won't work if it's a X11 game. It works only for SDL game.

To switch X11 Windows to fullscreen, you need to put this kind of code after the window creation;

Code:
   Atom wmState = XInternAtom(display, "_NET_WM_STATE", False);
   Atom wmFullscreen = XInternAtom(display, "_NET_WM_STATE_FULLSCREEN", False);
   XChangeProperty(display, window, wmState, XA_ATOM, 32, PropModeReplace, (unsigned char *)&wmFullscreen, 1);
 
Back
Top