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 2ad99d9 commit f54ded0Copy full SHA for f54ded0
screen.ts
@@ -151,16 +151,17 @@ namespace user_interface_base {
151
// Simply get the row, slice off the required bytes:
152
else {
153
const rowBuf = Buffer.create(bitmap.width);
154
+ let res = Buffer.create(chunkSize);
155
156
// bitmap.getRows(startingRow, rowBuf);
157
// basic.showNumber(rowBuf.length)
158
// const res = rowBuf.slice(startIndex % width, chunkSize);
159
const start = startIndex % width;
160
const end = start + chunkSize;
161
for (let i = start; i < end; i++) {
- rowBuf[i] = 3;
162
+ res[i - start] = rowBuf[i];
163
}
- return rowBuf
164
+ return res
165
166
167
0 commit comments