Skip to content

Commit be487c4

Browse files
committed
screen.ts getBuffer debugging else branch by writing to rowBuffer 5; writing to res directly
1 parent b89864c commit be487c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

screen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ namespace user_interface_base {
154154

155155
// bitmap.getRows(startingRow, rowBuf);
156156
// basic.showNumber(rowBuf.length)
157-
for (let i = 0; i < rowBuf.length; i++) {
158-
rowBuf[i] = 3;
159-
}
160157

161158
const res = rowBuf.slice(startIndex % width, chunkSize);
159+
for (let i = 0; i < res.length; i++) {
160+
res[i] = 3;
161+
}
162162
return res
163163
}
164164
}

0 commit comments

Comments
 (0)