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:
parent
37bc089f1d
commit
490d2440da
3 changed files with 25 additions and 20 deletions
2
sixel.h
2
sixel.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue