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 be487c4 commit 2ad99d9Copy full SHA for 2ad99d9
screen.ts
@@ -154,12 +154,13 @@ namespace user_interface_base {
154
155
// bitmap.getRows(startingRow, rowBuf);
156
// basic.showNumber(rowBuf.length)
157
-
158
- const res = rowBuf.slice(startIndex % width, chunkSize);
159
- for (let i = 0; i < res.length; i++) {
160
- res[i] = 3;
+ // const res = rowBuf.slice(startIndex % width, chunkSize);
+ const start = startIndex % width;
+ const end = start + chunkSize;
+ for (let i = start; i < end; i++) {
161
+ rowBuf[i] = 3;
162
}
- return res
163
+ return rowBuf
164
165
166
0 commit comments