sixel: fix hls-to-rgb and color count issues (#185)

This fixes the following sixel issues:

- The HLS to RGB color conversion is broken.
  Ref. d4ade1fe3c

- Not enough color registers have been allocated for 1024 colors.
  Ref. 97f93e8436
This commit is contained in:
veltza 2026-01-15 12:11:04 +02:00 committed by GitHub
parent 37bc089f1d
commit 490d2440da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 20 deletions

View file

@ -14,7 +14,7 @@ typedef struct sixel_image_buffer {
sixel_color_no_t *data;
int width;
int height;
sixel_color_t palette[DECSIXEL_PALETTE_MAX];
sixel_color_t palette[DECSIXEL_PALETTE_MAX + 1];
sixel_color_no_t ncolors;
int palette_modified;
int use_private_register;