Skip to content

Commit e23f275

Browse files
committed
screen.ts getBuffer debugging else branch by writing to rowBuffer 2
1 parent e8a2f48 commit e23f275

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
@@ -152,11 +152,11 @@ namespace user_interface_base {
152152
else {
153153
// basic.showNumber(chunkIndex)
154154
const rowBuf = Buffer.create(bitmap.width);
155-
for (let i = 0; i < rowBuf.length; i++) {
156-
rowBuf[i] = 3;
157-
}
158155

159156
bitmap.getRows(startingRow, rowBuf);
157+
for (let i = 0; i < rowBuf.length; i++) {
158+
rowBuf[i] = 3;
159+
}
160160
const res = rowBuf.slice(startIndex % width, chunkSize);
161161
if (res.length > 16)
162162
basic.showString("B")

0 commit comments

Comments
 (0)