mirror of
https://github.com/tmux/tmux.git
synced 2026-09-05 13:10:45 +00:00
Fix SIXEL median-cut palette generation
This commit is contained in:
@@ -859,6 +859,9 @@ sixel_box_split(struct sixel_box *box, struct sixel_box *new,
|
||||
if (count >= box->count / 2)
|
||||
break;
|
||||
}
|
||||
/* Keep the maximum occupied level in the new box. */
|
||||
if (level == last)
|
||||
level--;
|
||||
memcpy(new, box, sizeof *new);
|
||||
if (channel == 0) {
|
||||
box->red_max = level;
|
||||
|
||||
Reference in New Issue
Block a user