Lines Matching refs:cmapsize
46 int cmapsize = 0;
55 fprintf(stderr, "usage: %s [-cmapsize N] [-cubesize N]\n", programname);
56 fprintf(stderr, "\t-cmapsize N set the number of colors to allocate\n");
101 if (num_colors >= cmapsize) {
102 usage("Internal error: more than cmapsize static colors defined");
117 if (strcmp(argv[i], "-cmapsize") == 0) {
119 usage("no argument to -cmapsize");
121 cmapsize = atoi(argv[i]);
122 if (cmapsize <= 2 || cmapsize > 256) {
143 if (cmapsize == 0) {
144 cmapsize = CMAPSIZE;
198 img_makePalette(cmapsize, virtcubesize, LOOKUPSIZE,
204 for (i = 0; i < cmapsize; i++) {