X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fbumps.h;h=ee61755db866e1e406ff4e46d5de84ea71cf53b3;hp=7c249bb00427c1539755a918e35edf07a0f6a5ef;hb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;hpb=ccb7f4903325f92555a9722bba74b58346654ba0 diff --git a/hacks/bumps.h b/hacks/bumps.h index 7c249bb0..ee61755d 100644 --- a/hacks/bumps.h +++ b/hacks/bumps.h @@ -30,7 +30,6 @@ #include #include "screenhack.h" -#include #ifdef HAVE_XSHM_EXTENSION #include "xshm.h" @@ -51,9 +50,8 @@ typedef unsigned char BOOL; /* Globals: */ -char *progclass = "Bumps"; -char *defaults [] = { +static const char *bumps_defaults [] = { ".background: black", ".foreground: white", "*color: random", @@ -70,7 +68,7 @@ char *defaults [] = { 0 }; -XrmOptionDescRec options [] = { +static XrmOptionDescRec bumps_options [] = { { "-color", ".color", XrmoptionSepArg, 0 }, { "-colorcount", ".colorcount", XrmoptionSepArg, 0 }, { "-delay", ".delay", XrmoptionSepArg, 0 }, @@ -99,18 +97,18 @@ typedef struct float nXPos, nYPos; } SSpotLight; -void CreateSpotLight( SSpotLight *, uint16_, uint16_ ); void CreateTables( SSpotLight * ); -void DestroySpotLight( SSpotLight *pSpotLight ) { free( pSpotLight->aLightMap ); } /* The entire program's operation is contained within this structure. */ typedef struct { /* XWindows specific variables. */ - Display *pDisplay; + Display *dpy; Window Win; + Pixmap source; GC GraphicsContext; + XColor *xColors; uint32_ *aColors; XImage *pXImage; #ifdef HAVE_XSHM_EXTENSION @@ -122,17 +120,12 @@ typedef struct uint8_ bytesPerPixel; uint16_ iWinWidth, iWinHeight; uint16_ *aBumpMap; /* The actual bump map. */ - SSpotLight SpotLight; -} SBumps; -void CreateBumps( SBumps *, Display *, Window ); -void Execute( SBumps * ); -void DestroyBumps( SBumps * ); + int delay; -void SetPalette( SBumps *, XWindowAttributes * ); -void InitBumpMap( SBumps *, XWindowAttributes * ); -void SoftenBumpMap( SBumps * ); + async_load_state *img_loader; +} SBumps; #endif /* _BUMPS_H */