home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
REND.LZH
/
REND
/
CRTX11.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-16
|
663b
|
32 lines
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
Display *display;
Window window;
Pixmap pixmap;
Visual *visual;
XImage *image;
u_char *imagedata;
Status result;
XEvent event;
Colormap cmap;
GC gc;
XSizeHints hints;
int x11_enable = 0;
int screen;
int depth;
int gm_x,gm_y,gm_w,gm_h;
int vclass;
#define NCOLS 256
u_long pixels[NCOLS]; /* index is local color code (0~NCOL) */
u_int ncols;
u_short red[NCOLS]; /* index is local color code (0~NCOL) */
u_short green[NCOLS]; /* index is local color code (0~NCOL) */
u_short blue[NCOLS]; /* index is local color code (0~NCOL) */