CTWM
Loading...
Searching...
No Matches
Functions
/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()

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

Definition at line 239 of file image_xwd.c.

References PlaceX.

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(), LoadXwdImage(), and PlaceX.

Referenced by GetImage().

◆ LoadXwdImage()

static Image * LoadXwdImage ( const char * filename,
ColorPair cp )
static

◆ swaplong()

static void swaplong ( char * bp,
unsigned n )
static

Definition at line 304 of file image_xwd.c.

References PlaceX.

Referenced by LoadXwdImage().

◆ swapshort()

static void swapshort ( char * bp,
unsigned n )
static

Definition at line 289 of file image_xwd.c.

References PlaceX.

Referenced by LoadXwdImage().