Skip to content

Commit a6f4ead

Browse files
committed
encoder: Mark empty lines with SLP_LINE_EMPTY left outline value
1 parent 06d3807 commit a6f4ead

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SLPEncoder.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ function renderCommandsToSlpFrame ({ width, height, commands, baseOffset }) {
156156
x += arg.pxCount
157157
} else if (command === RENDER_SKIP) {
158158
if (x === 0) {
159-
outlines[y].left = arg
159+
if (arg === width) {
160+
outlines[y].left = SLP_LINE_EMPTY
161+
} else {
162+
outlines[y].left = arg
163+
}
160164
} else if (x + arg === width) {
161165
outlines[y].right = arg
162166
} else if (arg >= 64) {

0 commit comments

Comments
 (0)