#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xlibint.h>
Go to the source code of this file.
static int dummy_handle_x_errors |
( |
Display * |
dpy, |
|
|
XErrorEvent * |
event |
|
) |
| |
|
static |
int XAllocColors |
( |
Display * |
dpy, |
|
|
Colormap |
cmap, |
|
|
XColor * |
defs, |
|
|
int |
ndefs, |
|
|
int * |
statuses |
|
) |
| |
Definition at line 26 of file XGetHClrs.c.
34 register xAllocColorReq *req;
46 for (i = 0; i < ndefs; i++)
48 GetReq(AllocColor, req);
51 req->red = defs[
i].red;
52 req->green = defs[
i].green;
53 req->blue = defs[
i].blue;
59 statuses[
counter] = _XReply(
dpy, (xReply *) &rep, 0, xTrue);
61 defs[
counter].pixel = rep.pixel;
63 defs[
counter].green = rep.green;
74 XSetErrorHandler(
function );
76 return(return_status);
static int dummy_handle_x_errors(Display *dpy, XErrorEvent *event)