Lines Matching refs:cube
52 int cube, gray; in miBuildRenderColormap() local
99 cube = gray = 0; in miBuildRenderColormap()
106 for (cube = 1; in miBuildRenderColormap()
107 cube * cube * cube < pColormap->pVisual->ColormapEntries; in miBuildRenderColormap()
108 cube++); in miBuildRenderColormap()
109 cube--; in miBuildRenderColormap()
110 if (cube == 1) in miBuildRenderColormap()
111 cube = 0; in miBuildRenderColormap()
114 cube = 0; in miBuildRenderColormap()
119 if (cube) { in miBuildRenderColormap()
120 needed = pColormap->pVisual->ColormapEntries - (cube * cube * cube); in miBuildRenderColormap()
122 gray = needed / (cube - 1); in miBuildRenderColormap()
124 gray = (gray + 1) * (cube - 1) + 1; in miBuildRenderColormap()
131 cube = NUM_CUBE_LEVELS; in miBuildRenderColormap()
143 for (r = 0; r < cube; r++) in miBuildRenderColormap()
144 for (g = 0; g < cube; g++) in miBuildRenderColormap()
145 for (b = 0; b < cube; b++) { in miBuildRenderColormap()
147 red = (r * 65535 + (cube - 1) / 2) / (cube - 1); in miBuildRenderColormap()
148 green = (g * 65535 + (cube - 1) / 2) / (cube - 1); in miBuildRenderColormap()
149 blue = (b * 65535 + (cube - 1) / 2) / (cube - 1); in miBuildRenderColormap()