| 85 | return 0; |
| 86 | } |
| 87 | void |
| 88 | get_color(unsigned int colind, struct RGB *rgb) |
| 89 | { |
| 90 | rgb->r = (1000L * (long) ColorMap[colind].r) / 0xFF; |
| 91 | rgb->g = (1000L * (long) ColorMap[colind].g) / 0xFF; |
| 92 | rgb->b = (1000L * (long) ColorMap[colind].b) / 0xFF; |
| 93 | } |
| 94 | void |
| 95 | get_pixel(int x, int y, unsigned int *colind) |
| 96 | { |