diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-28 10:55:09 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-28 11:22:09 +0000 |
| commit | 3566be591a971a118dca6edc263dd7eefaa5f648 (patch) | |
| tree | 5bd69d917cd6a97248574014eac9890019b9cb5c /debug.c | |
| parent | Merge branch 'pgo-clang-11' (diff) | |
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.
Diffstat (limited to 'debug.c')
0 files changed, 0 insertions, 0 deletions
