10#include <X11/XWDFile.h>
208 if((w > (
Scr->rootw / 2)) || (h > (
Scr->rooth / 2))) {
212 Scr->rooth,
Scr->d_depth);
213 x = (
Scr->rootw - w) / 2;
214 y = (
Scr->rooth - h) / 2;
241 unsigned char ind [256];
242 unsigned int used [256];
248 for(i = 0; i < 256; i++) {
253 size = image->bytes_per_line * image->height;
254 imagedata = (
unsigned char *) image->data;
255 for(i = 0; i <
size; i++) {
256 if((i % image->bytes_per_line) > image->width) {
260 if(used [color] == 0) {
278 for(i = 0; i <
size; i++) {
281 for(i = 0; i <
nused; i++) {
Image * get_image_anim_cp(const char *name, ColorPair cp, Image *(*imgloader)(const char *, ColorPair))
char * ExpandPixmapPath(const char *name)
static void swapshort(char *bp, unsigned n)
Image * GetXwdImage(const char *name, ColorPair cp)
static void compress(XImage *image, XColor *colors, int *ncolors)
static void swaplong(char *bp, unsigned n)
static Image * LoadXwdImage(const char *filename, ColorPair cp)