#include <math.h>
#include "screenhack.h"
-#include <X11/Xutil.h>
#ifdef HAVE_XSHM_EXTENSION
#include "xshm.h"
/* Globals: */
-char *progclass = "Bumps";
-char *defaults [] = {
+static const char *bumps_defaults [] = {
".background: black",
".foreground: white",
"*color: random",
0
};
-XrmOptionDescRec options [] = {
+static XrmOptionDescRec bumps_options [] = {
{ "-color", ".color", XrmoptionSepArg, 0 },
{ "-colorcount", ".colorcount", XrmoptionSepArg, 0 },
{ "-delay", ".delay", XrmoptionSepArg, 0 },
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
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 */