… | |
… | |
3391 | |
3391 | |
3392 | unsigned int index = colorcube_index (r, g, b); |
3392 | unsigned int index = colorcube_index (r, g, b); |
3393 | |
3393 | |
3394 | if (rgb24_color[index] == color) |
3394 | if (rgb24_color[index] == color) |
3395 | { |
3395 | { |
3396 | rgb24_seqno[idx] = ++rgb24_sequence; |
3396 | rgb24_seqno[index] = ++rgb24_sequence; |
3397 | return index + minTermCOLOR24; |
3397 | return index + minTermCOLOR24; |
3398 | } |
3398 | } |
3399 | |
3399 | |
3400 | // minor issue: could update index 0 few more times |
3400 | // minor issue: could update index 0 few more times |
3401 | if ((rgb24_seqno[index] | rgb24_color[index]) == 0) |
3401 | if ((rgb24_seqno[index] | rgb24_color[index]) == 0) |