X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fendgame.c;h=819ef5c1b222457d66073659ff80cc84c476c2e6;hp=857183bfb69f5b4ce56abae7eb8a87c5e69d3c41;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hpb=de460e831dc8578acfa8b72251ab9346c99c1f96 diff --git a/hacks/glx/endgame.c b/hacks/glx/endgame.c index 857183bf..819ef5c1 100644 --- a/hacks/glx/endgame.c +++ b/hacks/glx/endgame.c @@ -39,6 +39,13 @@ #undef countof #define countof(x) (sizeof((x))/sizeof((*x))) +#define DEF_ROTATE "True" +#define DEF_REFLECTIONS "True" +#define DEF_SHADOWS "True" +#define DEF_SMOOTH "True" +#define DEF_CLASSIC "False" + + static XrmOptionDescRec opts[] = { {"+rotate", ".chess.rotate", XrmoptionNoArg, "false" }, {"-rotate", ".chess.rotate", XrmoptionNoArg, "true" }, @@ -55,11 +62,11 @@ static XrmOptionDescRec opts[] = { static int rotate, reflections, smooth, shadows, classic; static argtype vars[] = { - {&rotate, "rotate", "Rotate", "True", t_Bool}, - {&reflections, "reflections", "Reflections", "True", t_Bool}, - {&shadows, "shadows", "Shadows", "True", t_Bool}, - {&smooth, "smooth", "Smooth", "True", t_Bool}, - {&classic, "classic", "Classic", "False", t_Bool}, + {&rotate, "rotate", "Rotate", DEF_ROTATE, t_Bool}, + {&reflections, "reflections", "Reflections", DEF_REFLECTIONS, t_Bool}, + {&shadows, "shadows", "Shadows", DEF_SHADOWS, t_Bool}, + {&smooth, "smooth", "Smooth", DEF_SMOOTH, t_Bool}, + {&classic, "classic", "Classic", DEF_CLASSIC, t_Bool}, }; ENTRYPOINT ModeSpecOpt chess_opts = {countof(opts), opts, countof(vars), vars, NULL};