X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fstonerview.c;h=0354431b65b33a8cddbb94366db1427e9d7f622e;hp=dc578622d60f44a7008103397c53ce90e50249fd;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hpb=de460e831dc8578acfa8b72251ab9346c99c1f96 diff --git a/hacks/glx/stonerview.c b/hacks/glx/stonerview.c index dc578622..0354431b 100644 --- a/hacks/glx/stonerview.c +++ b/hacks/glx/stonerview.c @@ -35,6 +35,8 @@ #include "stonerview.h" #include "gltrackball.h" +#define DEF_TRANSPARENT "True" + typedef struct { GLXContext *glx_context; stonerview_state *st; @@ -44,7 +46,19 @@ typedef struct { static stonerview_configuration *bps = NULL; -ENTRYPOINT ModeSpecOpt stonerview_opts = {0, NULL, 0, NULL, NULL}; +static Bool transparent_p; + + +static XrmOptionDescRec opts[] = { + { "-transparent", ".transparent", XrmoptionNoArg, "True" }, + { "+transparent", ".transparent", XrmoptionNoArg, "False" }, +}; + +static argtype vars[] = { + {&transparent_p, "transparent", "Transparent", DEF_TRANSPARENT, t_Bool}, +}; + +ENTRYPOINT ModeSpecOpt stonerview_opts = {countof(opts), opts, countof(vars), vars, NULL}; ENTRYPOINT void @@ -83,7 +97,7 @@ init_stonerview (ModeInfo *mi) bp->glx_context = init_GL(mi); bp->trackball = gltrackball_init (); - bp->st = init_view(MI_IS_WIREFRAME(mi)); + bp->st = init_view(MI_IS_WIREFRAME(mi), transparent_p); init_move(bp->st); reshape_stonerview (mi, MI_WIDTH(mi), MI_HEIGHT(mi));