/dports/games/nethack33/nethack-3.3.1/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 74 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 85 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 87 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 95 header.ncolors++; in merge_text_colormap() 127 if (header.ncolors > 64) { 138 header.ncolors, 140 for (i = 0; i < header.ncolors; i++) 173 header.ncolors = 0; [all …]
|
/dports/games/nethack33-nox11/nethack-3.3.1/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 74 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 85 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 87 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 95 header.ncolors++; in merge_text_colormap() 127 if (header.ncolors > 64) { 138 header.ncolors, 140 for (i = 0; i < header.ncolors; i++) 173 header.ncolors = 0; [all …]
|
/dports/games/falconseye/falconseye-1.9.3_11/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 74 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 85 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 87 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 95 header.ncolors++; in merge_text_colormap() 127 if (header.ncolors > 64) { 138 header.ncolors, 140 for (i = 0; i < header.ncolors; i++) 173 header.ncolors = 0; [all …]
|
/dports/graphics/netpbm/netpbm-10.91.01/editor/ |
H A D | ppmchange.c | 31 int ncolors; /* Number of valid entries in color0[], color1[] */ member 98 cmdlineP->ncolors = 0; /* initial value */ in parseCommandLine() 100 argn+1 < argc && cmdlineP->ncolors < TCOLS; in parseCommandLine() 102 cmdlineP->oldcolorname[cmdlineP->ncolors] = argv[argn]; in parseCommandLine() 103 cmdlineP->newcolorname[cmdlineP->ncolors] = argv[argn+1]; in parseCommandLine() 104 cmdlineP->ncolors++; in parseCommandLine() 132 int const ncolors, in changeRow() argument 164 for (i = 0; i < ncolors && !haveMatch; ++i) { in changeRow() 218 for (i = 0; i < cmdline.ncolors; ++i) { in main() 235 changeRow(inrow, outrow, cols, cmdline.ncolors, oldcolor, newcolor, in main()
|
/dports/graphics/openrm/rm160/rm/ |
H A D | rmdraw2.c | 313 int ncolors, in private_rmSetGLColorFunc() argument 557 int cstride, ncolors, cveclen; in OGLPRIMPARMLIST() local 704 int cstride, ncolors, cveclen; in OGLPRIMPARMLIST() local 1287 if (ncolors != 0 && ncolors != nverts) in OGLPRIMPARMLIST() 1362 if ((ncolors != 0) && (ncolors != (nverts/2))) in OGLPRIMPARMLIST() 2577 if (ncolors != 0) in OGLPRIMPARMLIST() 2579 if (ncolors == nverts) in OGLPRIMPARMLIST() 2581 else if ((ncolors << 2) == nverts) in OGLPRIMPARMLIST() 2612 if (ncolors != 0) in OGLPRIMPARMLIST() 2642 if (ncolors != 0) in OGLPRIMPARMLIST() [all …]
|
/dports/x11/xlockmore/xlockmore-5.67/modes/ |
H A D | lyapunov.c | 108 int ncolors; member 205 if (lp->ncolors && !lp->no_colors) in free_lyapunov_screen() 320 lp->ncolors = 0; in init_lyapunov() 348 lp->ncolors = MI_NCOLORS(mi); in init_lyapunov() 349 if (lp->ncolors < 2) in init_lyapunov() 350 lp->ncolors = 2; in init_lyapunov() 351 if (lp->ncolors <= 2) in init_lyapunov() 422 if (lp->ncolors < 2) { in init_lyapunov() 423 lp->ncolors = 2; in init_lyapunov() 427 if (lp->ncolors <= 2) in init_lyapunov() [all …]
|
/dports/graphics/grads/grads-1.9b4/src/ |
H A D | gxdxwd.c | 84 int ncolors, i; local 173 ncolors = Get_XColors(&win_info, &colors); 213 header.ncolors = ncolors; 222 for (i = 0; i < ncolors; i++) { 276 if(ncolors > 0) free(colors); 340 int i, ncolors; local 356 ncolors = win_info->visual->map_entries; 368 for (i=0; i<ncolors; i++) { 382 for (i=0; i<ncolors; i++) { 388 XQueryColors(dpy, cmap, *colors, ncolors); [all …]
|
/dports/games/xnethack/xNetHack-xnh6.1/win/X11/ |
H A D | tile2x11.c | 34 for (i = 0; i < header.ncolors; i++) { in pix_to_colormap() 41 if (i == header.ncolors) { in pix_to_colormap() 85 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 96 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 98 Fprintf(stdout, "color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 106 header.ncolors++; in merge_text_colormap() 135 if (header.ncolors > 64) { in xpm_write() 145 header.ncolors, 1 /* char per color */); in xpm_write() 146 for (i = 0; i < header.ncolors; i++) in xpm_write() 174 header.ncolors = 0; in main() [all …]
|
/dports/games/nethack34-nox11/nethack-3.4.3/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 83 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 94 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 96 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 104 header.ncolors++; in merge_text_colormap() 136 if (header.ncolors > 64) { 147 header.ncolors, 149 for (i = 0; i < header.ncolors; i++) 180 header.ncolors = 0; [all …]
|
/dports/games/nethack34/nethack-3.4.3/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 83 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 94 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 96 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 104 header.ncolors++; in merge_text_colormap() 136 if (header.ncolors > 64) { 147 header.ncolors, 149 for (i = 0; i < header.ncolors; i++) 180 header.ncolors = 0; [all …]
|
/dports/games/vultures-eye/vulture-2.3.67/nethack/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 83 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 94 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 96 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 104 header.ncolors++; in merge_text_colormap() 136 if (header.ncolors > 64) { 147 header.ncolors, 149 for (i = 0; i < header.ncolors; i++) 180 header.ncolors = 0; [all …]
|
/dports/games/vultures-eye/vulture-2.3.67/unnethack/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 83 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 94 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 96 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 104 header.ncolors++; in merge_text_colormap() 136 if (header.ncolors > 64) { 147 header.ncolors, 149 for (i = 0; i < header.ncolors; i++) 180 header.ncolors = 0; [all …]
|
/dports/games/unnethack/unnethack-5.1.0-20131208/win/X11/ |
H A D | tile2x11.c | 30 for (i = 0; i < header.ncolors; i++) { 37 if (i == header.ncolors) { 83 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 94 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 96 printf("color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 104 header.ncolors++; in merge_text_colormap() 136 if (header.ncolors > 64) { 147 header.ncolors, 149 for (i = 0; i < header.ncolors; i++) 180 header.ncolors = 0; [all …]
|
/dports/lang/smalltalk/smalltalk-3.2.5/packages/blox/tk/ |
H A D | BloxTK.c | 269 unsigned int *ncolors, 272 unsigned int ncolors, 278 unsigned int ncolors, 298 int ncolors); 575 unsigned int *ncolors, unsigned int *cpp) in xpmParseValues() argument 722 xpmFreeColorTable (colorTable, ncolors); in xpmParseColors() 804 if (a < ncolors - 1) in xpmParseColors() 873 for (a = 0; a < ncolors; a++) in xpmParsePixels() 907 for (a = 0; a < ncolors; a++) in xpmParsePixels() 964 unsigned int width, height, ncolors, cpp; in xpmParseData() local [all …]
|
/dports/graphics/leptonica/leptonica-1.76.0/src/ |
H A D | colormap.c | 161 l_int32 ncolors, i; in pixcmapCreateRandom() local 173 ncolors = 1 << depth; in pixcmapCreateRandom() 653 l_int32 ncolors; in pixcmapGetMinDepth() local 664 if (ncolors <= 4) in pixcmapGetMinDepth() 1629 (ncolors < 2 || ncolors > 256)) in pixcmapReadStream() 1820 l_int32 i, ncolors; in pixcmapToArrays() local 1934 *pncolors = ncolors; in pixcmapSerializeToMemory() 1973 if (ncolors == 0) in pixcmapDeserializeFromMemory() 1975 if (ncolors > 256) in pixcmapDeserializeFromMemory() 1978 if (ncolors > 16) in pixcmapDeserializeFromMemory() [all …]
|
/dports/x11/mate-screensaver/mate-screensaver-1.26.1/savers/ |
H A D | gste-popsquares.c | 50 int ncolors; member 226 int ncolors, wanted; in make_color_ramp() local 235 ncolors = total_ncolors; in make_color_ramp() 241 ncolors = (ncolors / 2) + 1; in make_color_ramp() 250 ds = (s2 - s1) / ncolors; in make_color_ramp() 251 dv = (v2 - v1) / ncolors; in make_color_ramp() 253 for (i = 0; i < ncolors; i++) in make_color_ramp() 266 for (i = ncolors; i < n_colors; i++) in make_color_ramp() 427 pop->priv->ncolors, in setup_colors() 545 if (s->color == pop->priv->ncolors) in draw_frame() [all …]
|
/dports/x11-toolkits/gnustep-back/libs-back-back-0_28_0/Source/x11/ |
H A D | context.c | 116 if (ctx->ncolors <= 1) { in allocateStandardPseudoColor() 188 int i, ncolors, r, g, b; in allocatePseudoColor() local 192 ncolors = cpc * cpc * cpc; in allocatePseudoColor() 197 ncolors = cpc * cpc * cpc; in allocatePseudoColor() 262 for (i=0; i<ncolors; i++) { in allocatePseudoColor() 276 for (i=0; i<ncolors; i++) { in allocatePseudoColor() 312 ctx->ncolors = ncolors; in allocatePseudoColor() 329 int i, ncolors, r, g, b; in allocateGrayScale() local 333 ncolors = cpc * cpc * cpc; in allocateGrayScale() 337 ncolors = 1<<ctx->depth; in allocateGrayScale() [all …]
|
/dports/graphics/netpbm/netpbm-10.91.01/converter/ppm/ |
H A D | ppmtoacad.c | 44 static void slideout ARGS((int xdots, int ydots, int ncolors, 152 static void slideout(xdots, ydots, ncolors, red, green, blue) in slideout() argument 153 int xdots, ydots, ncolors; in slideout() 197 for (i = 0; i < ncolors; i++) { 269 int argn, rows, cols, ncolors, i; local 359 pm_message("%d colors found", ncolors); 367 Red = (unsigned char *) pm_allocrow(ncolors, sizeof(unsigned char)); 369 Blue = (unsigned char *) pm_allocrow(ncolors, sizeof(unsigned char)); 371 for (i = 0; i < ncolors; ++i) { 385 cht = ppm_colorhisttocolorhash(chv, ncolors); [all …]
|
/dports/x11-toolkits/open-motif/motif-2.3.8/lib/Xm/ |
H A D | Xpmscan.c | 69 unsigned int ncolors; member 120 unsigned int ncolors; local 126 ncolors = pmap->ncolors; 131 if (i == ncolors) { 141 pmap->ncolors++; 154 if (!pmap->ncolors) { 155 pmap->ncolors = 1; 206 pmap.ncolors = 0; 326 xpmimage->ncolors = pmap.ncolors; 394 unsigned int ncolors; [all …]
|
/dports/x11-toolkits/movingmotif/movingmotif-2.3.0/demo/mindsrc/ |
H A D | read_xwd.c | 100 int ncolors; in ReadXWD() local 192 if((ncolors = header.ncolors)) { in ReadXWD() 203 for (i = 0; i < ncolors; i++) { in ReadXWD() 231 ncolors = 0; in ReadXWD() 343 if ((z2 >= ncolors) && in ReadXWD() 375 (vinfo.colormap_size >= ncolors) && in ReadXWD() 381 if (ncolors) { in ReadXWD() 382 for (i = 0; i < ncolors; i++) in ReadXWD() 405 ncolors = 0; in ReadXWD() 635 if (ncolors) { in Do_Direct() [all …]
|
/dports/misc/magicpoint/magicpoint-1.13a/image/ |
H A D | xpixmap.c | 55 unsigned int ncolors; /* number of colors */ local 71 format= w= h= ncolors= 0; 93 ncolors= value; 117 if ((format != XPM_FORMAT) || !w || !h || !ncolors || !cpp) { 133 name, w, h, ncolors, imagetitle); 135 for (depth= 1, value= 2; value < ncolors; value <<= 1, depth++) 138 image->rgb.used= ncolors; 144 ctable= (char **)lmalloc(sizeof(char *) * ncolors); 146 for (a= 0; a < ncolors; a++) { 222 for (a= 0; a < ncolors; a++) [all …]
|
/dports/games/nethack36-nox11/NetHack-NetHack-3.6.6_Released/win/X11/ |
H A D | tile2x11.c | 32 for (i = 0; i < header.ncolors; i++) { 39 if (i == header.ncolors) { 84 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 95 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 97 Fprintf(stdout, "color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 105 header.ncolors++; in merge_text_colormap() 136 if (header.ncolors > 64) { 146 header.ncolors, 1 /* char per color */); 147 for (i = 0; i < header.ncolors; i++) 177 header.ncolors = 0; [all …]
|
/dports/games/nethack36/NetHack-NetHack-3.6.6_Released/win/X11/ |
H A D | tile2x11.c | 32 for (i = 0; i < header.ncolors; i++) { 39 if (i == header.ncolors) { 84 for (j = 0; j < header.ncolors; j++) in merge_text_colormap() 95 if (j == header.ncolors) { /* couldn't find it */ in merge_text_colormap() 97 Fprintf(stdout, "color %2d: %3d %3d %3d\n", header.ncolors, in merge_text_colormap() 105 header.ncolors++; in merge_text_colormap() 136 if (header.ncolors > 64) { 146 header.ncolors, 1 /* char per color */); 147 for (i = 0; i < header.ncolors; i++) 177 header.ncolors = 0; [all …]
|
/dports/x11/xloadimage/xloadimage.4.1/ |
H A D | xpixmap.c | 48 unsigned int ncolors; /* number of colors */ local 66 format= w= h= ncolors= 0; 88 ncolors= value; 112 if ((format != XPM_FORMAT) || !w || !h || !ncolors || !cpp) { 128 name, w, h, ncolors, imagetitle); 130 for (depth= 1, value= 2; value < ncolors; value <<= 1, depth++) 133 image->rgb.used= ncolors; 139 ctable= (char **)lmalloc(sizeof(char *) * ncolors); 141 for (a= 0; a < ncolors; a++) { 217 for (a= 0; a < ncolors; a++) [all …]
|
/dports/graphics/urt/urt-3.1b1_12/cnv/ |
H A D | rletoascii.c | 91 if ( hdr.ncolors == 0 ) 98 if ( hdr.ncolors > 3 ) { 101 hdr.cmd, hdr.ncolors, hdr.file_name ); 102 for ( i = 3; i < hdr.ncolors; i++ ) 111 scan = (unsigned char **) malloc( hdr.ncolors * 113 for ( i = 0; i < hdr.ncolors; i++ ) 128 if (hdr.ncolors > 1) {
|