Lines Matching defs:index
34 LoadPalette::ColorForIndex(int index)
36 // never index into pal directly - this function is safe
37 if (index >= 0 && index <= size) {
38 if (usetransparent && index == transparentindex)
41 return data[index];
48 LoadPalette::SetColor(int index, uint8 red, uint8 green, uint8 blue)
50 if (index < 0 || index > 255)
53 data[index] = (blue << 24) + (green << 16) + (red << 8) + 0xff;
54 data[index] = B_BENDIAN_TO_HOST_INT32(data[index]);