summaryrefslogtreecommitdiff
path: root/src/main.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/main.c
parent7e3530a7055b429ac9f879598093a816356e041c (diff)
downloadpowder-2a3af54e92f9600094b22b28b8878eb20761a444.zip
powder-2a3af54e92f9600094b22b28b8878eb20761a444.tar.gz
Kiosk mode, full screen. requested by dante3rd
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 1343b96..3c3cfb3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -134,6 +134,7 @@ int core_count()
}
int mousex = 0, mousey = 0; //They contain mouse position
+int kiosk_enable = 0;
void sdl_seticon(void)
{
@@ -1158,6 +1159,11 @@ int main(int argc, char *argv[])
{
hud_enable = 0;
}
+ else if(!strncmp(argv[i], "kiosk", 5))
+ {
+ kiosk_enable = 1;
+ sdl_scale = 2;
+ }
}
save_presets(0);