Skip to content

Commit 2bdee87

Browse files
committed
screen.ts cleanup
1 parent 338f4e4 commit 2bdee87

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

screen.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ namespace user_interface_base {
8484

8585

8686
public static drawTransparentImage(from: Bitmap, x: number, y: number) {
87-
let b = Buffer.create(from.width / 8);
88-
89-
for (let row = 0; row < from.height; row++) {
90-
from.getRows(row, b);
91-
radio.sendBuffer(b)
92-
}
87+
// let b = Buffer.create(from.width / 8);
88+
89+
// for (let row = 0; row < from.height; row++) {
90+
// from.getRows(row, b);
91+
// radio.sendBuffer(b)
92+
// }
93+
// Just separate the sendBitmap function into this file, make it have a static array that it can update, hash 'from' into that to get an index that you send.
94+
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_DRAW_TRANSPARENT_IMAGE, c]));
9395
}
9496

9597

0 commit comments

Comments
 (0)