Back to index

plt-scheme  4.2.1
Classes | Defines | Typedefs | Functions File Reference
#include <stdlib.h>
#include "wx_image.h"
#include "wx_utils.h"
#include "../../../src/XWidgets/wxAllocColor.h"

Go to the source code of this file.


struct  thing


#define NOPIX   0xffffffff


typedef struct thing CMAPENT
typedef int(* image_Compare_Proc )(const void *, const void *)


static int CMAPcompare (CMAPENT *a, CMAPENT *b)
void xvDestroyImage (XImage *image)
void xvbzero (char *s, int len)

Class Documentation

struct thing

Definition at line 127 of file

Class Members
byte b
byte g
int oldindex
byte r
int use

Define Documentation


Definition at line 39 of file

#define NOPIX   0xffffffff

Definition at line 271 of file

Typedef Documentation

typedef struct thing CMAPENT

Definition at line 138 of file

Function Documentation

static int CMAPcompare ( CMAPENT a,
) [static]

Definition at line 133 of file

  return (b->use - a->use);
void xvbzero ( char *  s,
int  len 

Definition at line 1094 of file

  for ( ; len>0; len--) {
    *s++ = 0;
void xvDestroyImage ( XImage *  image)

Definition at line 1080 of file

  /* called in place of XDestroyImage().  Explicitly destroys *BOTH* the
     data and the structure.  XDestroyImage() doesn't seem to do this on all
     systems.  Also, can be called with a NULL image pointer */

  if (image) {
    /* free data by hand, since XDestroyImage is vague about it */
    if (image->data) free(image->data);
    image->data = NULL;