|
Post by flassari on Feb 25, 2009 3:43:37 GMT -5
It took me a little research to figure out how to go to fullscreen at runtime without changing the resolution of the client's screen, and here's the function I ended up with:
def ToggleFullscreen(): fullscreen = not base.win.isFullscreen() #toggle props = WindowProperties() if (not fullscreen): props.setFullscreen(False) props.setUndecorated(False) props.setOrigin(100,100) # or whatever you want props.setSize(800,600) # or whatever you want else: props.setFullscreen(True) # go fullscreen with the display's dimensions props.setSize(base.pipe.getDisplayWidth(), base.pipe.getDisplayHeight()) base.openMainWindow(props=props, gsg=base.win.getGsg())
-Ari-
|
|