Lines Matching refs:index
27 // Never index into pal directly - this function is safe
28 uint32 LoadPalette::ColorForIndex(int index) {
29 if (index >= 0 && index <= size) {
30 if (usetransparent && index == transparentindex) return B_TRANSPARENT_MAGIC_RGBA32;
31 else return data[index];
37 void LoadPalette::SetColor(int index, uint8 red, uint8 green, uint8 blue) {
38 if (index < 0 || index > 255) return;
39 data[index] = (blue << 24) + (green << 16) + (red << 8) + 0xff;
40 data[index] = B_BENDIAN_TO_HOST_INT32(data[index]);