Quantcast
Channel: Latest commits for file sixel.c
Viewing all articles
Browse latest Browse all 71

sixel: initialize max_non_empty_row_no to -1, not 0

$
0
0
sixel: initialize max_non_empty_row_no to -1, not 0 0 is a perfectly valid row number, and if max_non_empty_row_no==0, that means we have *1* sixel row, and after trimming the image, the image will have a height of 6 pixels. If the sixel sequence is empty (or at least doesn’t emit any non-empty pixels), then trimming the image should result in an image height of 0. When max_non_empty_row_no is initialized to -1, it will still have that value in unhook(), which makes the final image height 0.

Viewing all articles
Browse latest Browse all 71

Trending Articles