X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fbumps.h;h=afac1b1c4048539d9b947159e5f7e73545cf82eb;hp=ee61755db866e1e406ff4e46d5de84ea71cf53b3;hb=de460e831dc8578acfa8b72251ab9346c99c1f96;hpb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b diff --git a/hacks/bumps.h b/hacks/bumps.h index ee61755d..afac1b1c 100644 --- a/hacks/bumps.h +++ b/hacks/bumps.h @@ -57,6 +57,7 @@ static const char *bumps_defaults [] = { "*color: random", "*colorcount: 64", "*delay: 30000", + "*duration: 120", "*soften: 1", "*invert: FALSE", #ifdef __sgi /* really, HAVE_READ_DISPLAY_EXTENSION */ @@ -71,6 +72,7 @@ static const char *bumps_defaults [] = { static XrmOptionDescRec bumps_options [] = { { "-color", ".color", XrmoptionSepArg, 0 }, { "-colorcount", ".colorcount", XrmoptionSepArg, 0 }, + { "-duration", ".duration", XrmoptionSepArg, 0 }, { "-delay", ".delay", XrmoptionSepArg, 0 }, { "-soften", ".soften", XrmoptionSepArg, 0 }, { "-invert", ".invert", XrmoptionNoArg, "TRUE" }, @@ -106,6 +108,7 @@ typedef struct /* XWindows specific variables. */ Display *dpy; Window Win; + Screen *screen; Pixmap source; GC GraphicsContext; XColor *xColors; @@ -123,6 +126,8 @@ typedef struct SSpotLight SpotLight; int delay; + int duration; + time_t start_time; async_load_state *img_loader; } SBumps;