Searched refs:pixels (Results 1 - 18 of 18) sorted by relevance

/solaris-x11-s11/open-src/app/cmap_compact/sun-src/
H A Dcmcinit.c52 Pixel *pixels; local
57 pixels = (Pixel *) malloc(ntotal * sizeof(Pixel));
59 pixels = (Pixel *) alloca(ntotal * sizeof(Pixel));
63 for (nalloc=ntotal, p=pixels; nalloc > 0; nalloc>>=1) {
83 XFreeColors(DisplayOfScreen(screen), cmap, pixels+nalloc, ncolors, 0);
90 /* Free placeholder pixels */
91 XFreeColors(DisplayOfScreen(screen), cmap, pixels, nalloc, 0); local
110 free(pixels);
H A Dcmcsave.c86 Pixel *pixels; local
95 if (!(pixels = (Pixel *) malloc(totalpix * sizeof(Pixel))))
100 if (!(pixels = (Pixel *) alloca(totalpix * sizeof(Pixel))))
120 pixels, nalloc))
123 pixtype[pixels[i]] = CELL_IGNORE;
181 free(pixels);
/solaris-x11-s11/open-src/app/xcolor/sun-src/
H A DXCrDynCmap.c49 unsigned long pixels[256]; local
73 pixels, ncolors);
84 colors[i].pixel = pixels[i];
88 colors[i].pixel = pixels[i];
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdps/
H A DdpsXcmu.c96 unsigned long *pixels; member in struct:__anon259
184 PixelRec pixels; local
259 pixels.pixels = NULL;
260 pixels.npixels = 0;
264 AllocateColorCube(dpy, vinfo, colorCube, &pixels);
274 AllocateGrayRamp(dpy, vinfo, grayRamp, colorCube, &pixels);
277 if (pixels.pixels != NULL) {
278 if (pixels
1197 AllocateColorCube( Display *dpy, XVisualInfo *vinfo, XStandardColormap *colorCube, PixelRec *pixels) argument
1286 AllocateGrayRamp( Display *dpy, XVisualInfo *vinfo, XStandardColormap *grayRamp, XStandardColormap *colorCube, PixelRec *pixels) argument
1379 AllocateColormap( Display *dpy, XStandardColormap *map, XVisualInfo *vinfo, int *count, PixelRec *pixels, int *first, int *remain, unsigned long delta) argument
1458 contiguous( unsigned long pixels[], int npixels, int *ncolors, unsigned long delta, int *first, int *rem) argument
[all...]
/solaris-x11-s11/open-src/app/xlock/sun-src/
H A Dflame.c115 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[fs->pixcol]);
178 Scr[screen].pixels[fs->pixcol]);
H A Dxlock.h55 int npixels; /* number of valid entries in pixels */
56 u_long pixels[NUMCOLORS]; /* pixel values in the colormap */ member in struct:__anon114
H A Dhopalong.c133 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[hp->pix]);
H A Dpyro.c197 pp->rockpixel = Scr[screen].pixels[3]; /* Just the right shade of
266 color1 = Scr[screen].pixels[pix = random() % npix];
267 color2 = Scr[screen].pixels[(pix + (npix / 2)) % npix];
H A Dimage.c109 Scr[screen].pixels[random() % Scr[screen].npixels]);
H A Dqix.c159 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[qp->pix]);
H A Drotor.c251 Scr[screen].pixels[fs->pix]);
H A Dswarm.c235 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[sp->pix]);
H A Dxlock.c1230 Scr[screen].pixels[0] = fgcol[screen].pixel;
1231 Scr[screen].pixels[1] = bgcol[screen].pixel;
1264 Scr[screen].pixels[i] = xcolor.pixel;
1268 fprintf(stderr, "%d pixels allocated\n", Scr[screen].npixels);
H A Dlife.c362 XSetForeground(dsp, Scr[screen].gc, Scr[screen].pixels[age]);
/solaris-x11-s11/open-src/lib/libdga/sun-src/
H A Drtn_grab.c585 * array used when the pixels are not cached in hardware. The
625 u_char *pixels; local
809 pixels = (u_char *) mmap(0,
816 if (pixels == (u_char *) -1) {
835 clientp->rtn_pixels = (void *) pixels;
/solaris-x11-s11/open-src/lib/libXaw5/sun-src/
H A DPanner.c195 unsigned long pixels[3]; local
199 pixels[0] = pw->panner.foreground;
200 pixels[1] = pw->core.background_pixel;
201 pixels[2] = pw->panner.shadow_color;
204 pixels, 3) &&
206 pixels, 2))
219 pixels, 2))
H A DText.c1034 * Description: Returns the width (in pixels) of the widest line that
1254 XtPointer callData; /* #pixels */
1258 Position old_left, pixels = (Position)(int) callData; local
1264 ctx->text.margin.left -= pixels;
1267 pixels = old_left - ctx->text.margin.left;
1270 if (pixels > 0) {
1271 rect.width = (unsigned short) pixels + ctx->text.margin.right;
1277 pixels, (int) rect.y, local
1281 PushCopyQueue(ctx, (int) -pixels, 0);
1283 else if (pixels <
[all...]
/solaris-x11-s11/open-src/lib/libXaw4/sun-src/
H A DXaw3_1Text.c942 * Description: Returns the width (in pixels) of the widest line that
1137 caddr_t callData; /* #pixels */
1141 Position old_left, pixels = (Position) callData; local
1147 ctx->text.margin.left -= pixels;
1150 pixels = old_left - ctx->text.margin.left;
1153 if (pixels > 0) {
1154 rect.width = (unsigned short) pixels + ctx->text.margin.right;
1160 pixels, (int) rect.y, local
1164 else if (pixels < 0) {
1171 rect.width = (Position) - pixels;
[all...]

Completed in 41 milliseconds