summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-01-06 08:55:10 (GMT)
committer Simon <simon@hardwired.org.uk>2011-01-06 08:55:10 (GMT)
commit2a3af54e92f9600094b22b28b8878eb20761a444 (patch)
treebdbb6effc75185ad1eca0d553bbe645566d92a3d /src/graphics.c
parent7e3530a7055b429ac9f879598093a816356e041c (diff)
downloadpowder-2a3af54e92f9600094b22b28b8878eb20761a444.zip
powder-2a3af54e92f9600094b22b28b8878eb20761a444.tar.gz
Kiosk mode, full screen. requested by dante3rd
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 525f0bb..4f65ef4 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -3381,9 +3381,15 @@ void sdl_open(void)
//glFlush ();
#else
#ifdef PIX16
- sdl_scrn=SDL_SetVideoMode(XRES*sdl_scale + BARSIZE*sdl_scale,YRES*sdl_scale + MENUSIZE*sdl_scale,16,SDL_SWSURFACE);
+ if(kiosk_enable)
+ sdl_scrn=SDL_SetVideoMode(XRES*sdl_scale + BARSIZE*sdl_scale,YRES*sdl_scale + MENUSIZE*sdl_scale,16,SDL_FULLSCREEN|SDL_SWSURFACE);
+ else
+ sdl_scrn=SDL_SetVideoMode(XRES*sdl_scale + BARSIZE*sdl_scale,YRES*sdl_scale + MENUSIZE*sdl_scale,16,SDL_SWSURFACE);
#else
- sdl_scrn=SDL_SetVideoMode(XRES*sdl_scale + BARSIZE*sdl_scale,YRES*sdl_scale + MENUSIZE*sdl_scale,32,SDL_SWSURFACE);
+ if(kiosk_enable)
+ sdl_scrn=SDL_SetVideoMode(XRES*sdl_scale + BARSIZE*sdl_scale,YRES*sdl_scale + MENUSIZE*sdl_scale,32,SDL_FULLSCREEN|SDL_SWSURFACE);
+ else
+ sdl_scrn=SDL_SetVideoMode(XRES*sdl_scale + BARSIZE*sdl_scale,YRES*sdl_scale + MENUSIZE*sdl_scale,32,SDL_SWSURFACE);
#endif
#endif
if(!sdl_scrn)