We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ca20b commit 9d0a7ffCopy full SHA for 9d0a7ff
src/tosixel.c
@@ -1419,7 +1419,7 @@ sixel_encode_highcolor(
1419
goto end;
1420
}
1421
1422
- if (dirty && mod_y == 5) {
+ if (dirty && (mod_y == 5 || y >= height)) {
1423
orig_height = height;
1424
1425
if (output_count++ == 0) {
@@ -1442,6 +1442,9 @@ sixel_encode_highcolor(
1442
if (SIXEL_FAILED(status)) {
1443
goto error;
1444
1445
+ if (y >= orig_height) {
1446
+ goto end;
1447
+ }
1448
pixels -= (6 * width * 3);
1449
height = orig_height - height + 6;
1450
goto next;
@@ -1452,6 +1455,7 @@ sixel_encode_highcolor(
1452
1455
mod_y = 0;
1453
1456
1454
1457
1458
+
1459
1460
1461
end:
0 commit comments