… | |
… | |
3372 | |
3372 | |
3373 | /* we allow one of the 6 directly neighbouring colours */ |
3373 | /* we allow one of the 6 directly neighbouring colours */ |
3374 | /* to replace the current color, if they not used recently */ |
3374 | /* to replace the current color, if they not used recently */ |
3375 | static const signed char dxyz[][3] = { |
3375 | static const signed char dxyz[][3] = { |
3376 | 0, 0, 0, |
3376 | 0, 0, 0, |
|
|
3377 | 0, 0, +1, |
3377 | 0, 0, -1, |
3378 | 0, 0, -1, |
3378 | 0, 0, +1, |
3379 | 0, +1, 0, |
3379 | 0, -1, 0, |
3380 | 0, -1, 0, |
3380 | 0, +1, 0, |
3381 | +1, 0, 0, |
3381 | -1, 0, 0, |
3382 | -1, 0, 0, |
3382 | +1, 0, 0, |
|
|
3383 | }; |
3383 | }; |
3384 | |
3384 | |
3385 | for (int n = 0; n < ecb_array_length (dxyz); ++n) |
3385 | for (int n = 0; n < ecb_array_length (dxyz); ++n) |
3386 | { |
3386 | { |
3387 | int r = idx_r + dxyz[n][0]; |
3387 | int r = idx_r + dxyz[n][0]; |
… | |
… | |
3419 | rgb24_color[idx] = color; |
3419 | rgb24_color[idx] = color; |
3420 | rgb24_seqno[idx] = ++rgb24_sequence; |
3420 | rgb24_seqno[idx] = ++rgb24_sequence; |
3421 | |
3421 | |
3422 | idx += minTermCOLOR24; |
3422 | idx += minTermCOLOR24; |
3423 | pix_colors_focused [idx].free (this); |
3423 | pix_colors_focused [idx].free (this); |
3424 | pix_colors_focused [idx].set (this, rgba (r * 0x0101, |
3424 | pix_colors_focused [idx].set (this, rgba (r * 0x0101, g * 0x0101, b * 0x0101)); |
3425 | g * 0x0101, |
|
|
3426 | b * 0x0101)); |
|
|
3427 | update_fade_color (idx, false); |
3425 | update_fade_color (idx, false); |
3428 | |
3426 | |
3429 | return idx; |
3427 | return idx; |
3430 | } |
3428 | } |
3431 | |
3429 | |