+static void SetPalette(Display *, SBumps *, XWindowAttributes * );
+static void InitBumpMap(Display *, SBumps *, XWindowAttributes * );
+static void InitBumpMap_2(Display *, SBumps *);
+static void SoftenBumpMap( SBumps * );
+
+
+
+
+/* This function pointer will point to the appropriate PutPixel*() function below. */
+static void (*MyPutPixel)( int8_ *, uint32_ );
+
+static void PutPixel32( int8_ *pData, uint32_ pixel )
+{
+ *(uint32_ *)pData = pixel;
+}
+
+static void PutPixel24( int8_ *pData, uint32_ pixel )
+{
+ pData[ 2 ] = ( pixel & 0x00FF0000 ) >> 16;
+ pData[ 1 ] = ( pixel & 0x0000FF00 ) >> 8;
+ pData[ 0 ] = ( pixel & 0x000000FF );
+}
+
+static void PutPixel16( int8_ *pData, uint32_ pixel )
+{
+ *(uint16_ *)pData = (uint16_)pixel;
+}
+
+static void PutPixel8( int8_ *pData, uint32_ pixel )
+{
+ *(uint8_ *)pData = (uint8_)pixel;
+}