Lines Matching refs:colourMap

129 	if (screen->colourMap.data.shorts) {  in set_greyscale_colormap()
130 free(screen->colourMap.data.shorts); in set_greyscale_colormap()
131 screen->colourMap.data.shorts = NULL; in set_greyscale_colormap()
135 screen->colourMap.count = NCOLOR; in set_greyscale_colormap()
137 screen->colourMap.is16 = TRUE; in set_greyscale_colormap()
138 screen->colourMap.data.shorts = (unsigned short *) in set_greyscale_colormap()
144 screen->colourMap.data.shorts[i*3+0] = lvl; in set_greyscale_colormap()
145 screen->colourMap.data.shorts[i*3+1] = lvl; in set_greyscale_colormap()
146 screen->colourMap.data.shorts[i*3+2] = lvl; in set_greyscale_colormap()
160 if (screen->colourMap.data.shorts) { in set_hi240_colormap()
161 free(screen->colourMap.data.shorts); in set_hi240_colormap()
162 screen->colourMap.data.shorts = NULL; in set_hi240_colormap()
165 screen->colourMap.count = 256; in set_hi240_colormap()
167 screen->colourMap.is16 = TRUE; in set_hi240_colormap()
168 screen->colourMap.data.shorts = (unsigned short *) in set_hi240_colormap()
178 screen->colourMap.data.shorts[(i+16)*3+0] = (unsigned short) (r * 256); in set_hi240_colormap()
179 screen->colourMap.data.shorts[(i+16)*3+1] = (unsigned short) (g * 256); in set_hi240_colormap()
180 screen->colourMap.data.shorts[(i+16)*3+2] = (unsigned short) (b * 256); in set_hi240_colormap()
191 if (screen->colourMap.data.shorts) { in unset_colormap()
192 free(screen->colourMap.data.shorts); in unset_colormap()
193 screen->colourMap.data.shorts = NULL; in unset_colormap()
217 if (screen->colourMap.data.shorts) { in set_colormap()
218 free(screen->colourMap.data.shorts); in set_colormap()
219 screen->colourMap.data.shorts = NULL; in set_colormap()
240 screen->colourMap.count = ncolor; in set_colormap()
242 screen->colourMap.is16 = TRUE; in set_colormap()
243 screen->colourMap.data.shorts = (unsigned short *) in set_colormap()
277 screen->colourMap.count = ncells; in set_colormap()
333 screen->colourMap.data.shorts[i*3+0] = color[i].red; in set_colormap()
334 screen->colourMap.data.shorts[i*3+1] = color[i].green; in set_colormap()
335 screen->colourMap.data.shorts[i*3+2] = color[i].blue; in set_colormap()
345 screen->colourMap.data.shorts[k*3+0] = color[i].red; in set_colormap()
346 screen->colourMap.data.shorts[k*3+1] = color[i].green; in set_colormap()
347 screen->colourMap.data.shorts[k*3+2] = color[i].blue; in set_colormap()
388 ncolor = screen->colourMap.count; in debug_colormap()
403 unsigned short r = screen->colourMap.data.shorts[i*3+0]; in debug_colormap()
404 unsigned short g = screen->colourMap.data.shorts[i*3+1]; in debug_colormap()
405 unsigned short b = screen->colourMap.data.shorts[i*3+2]; in debug_colormap()