p = XCreatePixmap(pBumps->pDisplay, pBumps->Win,
pXWinAttribs->width, pXWinAttribs->height,
pXWinAttribs->depth);
p = XCreatePixmap(pBumps->pDisplay, pBumps->Win,
pXWinAttribs->width, pXWinAttribs->height,
pXWinAttribs->depth);
- load_random_image (pXWinAttribs->screen, pBumps->Win, p);
+ load_random_image (pXWinAttribs->screen, pBumps->Win, p, NULL, NULL);
pScreenImage = XGetImage( pBumps->pDisplay, p, 0, 0, pBumps->iWinWidth, pBumps->iWinHeight, ~0L, ZPixmap );
XFreePixmap (pBumps->pDisplay, p);
pScreenImage = XGetImage( pBumps->pDisplay, p, 0, 0, pBumps->iWinWidth, pBumps->iWinHeight, ~0L, ZPixmap );
XFreePixmap (pBumps->pDisplay, p);
* |-----|-----|-----|
* | 0% |12.5%| 0% | The adjacent pixels are averaged together
* |-----|-----|-----| first. Then than value is averaged with
* |-----|-----|-----|
* | 0% |12.5%| 0% | The adjacent pixels are averaged together
* |-----|-----|-----| first. Then than value is averaged with
- pDOffset = &pBumps->pXImage->data[ (iLightY+pBumps->SpotLight.nLightRadius) * pBumps->pXImage->bytes_per_line ];
+ /* warning: pointer targets in assignment differ in signedness
+ Should pDOffset be a int8? I can't tell. -jwz, 22-Jul-2003 */
+ pDOffset = (int8_ *) &pBumps->pXImage->data[ (iLightY+pBumps->SpotLight.nLightRadius) * pBumps->pXImage->bytes_per_line ];
pBOffset = pBumps->aBumpMap + ( iScreenY * pBumps->iWinWidth ) + nLightXPos;
for( iScreenX=nLightXPos, iLightX=-pBumps->SpotLight.nLightRadius; iLightX<nLightOffsetFar; ++iScreenX, ++iLightX, ++pBOffset, pDOffset+=pBumps->bytesPerPixel )
{
pBOffset = pBumps->aBumpMap + ( iScreenY * pBumps->iWinWidth ) + nLightXPos;
for( iScreenX=nLightXPos, iLightX=-pBumps->SpotLight.nLightRadius; iLightX<nLightOffsetFar; ++iScreenX, ++iLightX, ++pBOffset, pDOffset+=pBumps->bytesPerPixel )
{