CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/image_xwd.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <X11/XWDFile.h>
#include "screen.h"
#include "animate.h"
#include "image.h"
#include "image_xwd.h"
Include dependency graph for image_xwd.c:

Go to the source code of this file.

Functions

static ImageLoadXwdImage (const char *filename, ColorPair cp)
static void compress (XImage *image, XColor *colors, int *ncolors)
static void swapshort (char *bp, unsigned n)
static void swaplong (char *bp, unsigned n)
ImageGetXwdImage (const char *name, ColorPair cp)

Function Documentation

◆ compress()

void compress ( XImage * image,
XColor * colors,
int * ncolors )
static

Definition at line 239 of file image_xwd.c.

References Image::height.

Referenced by LoadXwdImage().

◆ GetXwdImage()

Image * GetXwdImage ( const char * name,
ColorPair cp )

Definition at line 30 of file image_xwd.c.

References get_image_anim_cp(), and LoadXwdImage().

Referenced by GetImage().

◆ LoadXwdImage()

◆ swaplong()

void swaplong ( char * bp,
unsigned n )
static

Definition at line 304 of file image_xwd.c.

Referenced by LoadXwdImage().

◆ swapshort()

void swapshort ( char * bp,
unsigned n )
static

Definition at line 289 of file image_xwd.c.

Referenced by LoadXwdImage().