Mercurial > hg > forks > pwpunix
diff pwplib/pwplib.h @ 21:f0869ef0f2d9
Add commandline settings for fullscreen and changing horiz/vert resolution of SDL output. Also hide the mouse cursor.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 23 May 2010 20:06:17 +0300 |
parents | c60e531d19cd |
children | b9d679965320 |
line wrap: on
line diff
--- a/pwplib/pwplib.h Sun May 23 19:46:04 2010 +0300 +++ b/pwplib/pwplib.h Sun May 23 20:06:17 2010 +0300 @@ -102,7 +102,7 @@ int(*timerfunc)(); - int setup[20]; + int setup[128]; struct { @@ -146,7 +146,11 @@ SETUP_SHUTUP, SETUP_USERHEIGHT, SETUP_USERWIDTH, - SETUP_WANTHELP + SETUP_WANTHELP, + + SETUP_FULLSCREEN, + SETUP_XRES, + SETUP_YRES }; #ifndef __PWPLIB_C @@ -156,10 +160,10 @@ typedef struct { - char*name; + char *name; int type; - void*dflt; - void**var; + void *dflt; + void **var; }optab; #define OPT_BIN 0