Skip to content

Commit 10a5566

Browse files
committed
screen.ts cleanup
1 parent f6ded28 commit 10a5566

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

screen.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ namespace user_interface_base {
6060
}
6161
return Screen.image_
6262
}
63+
6364
public static resetScreenImage() {
6465
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_RESET_SCREEN_IMAGE]));
6566
}
@@ -89,8 +90,6 @@ namespace user_interface_base {
8990
from.getRows(row, b);
9091
radio.sendBuffer(b)
9192
}
92-
93-
basic.clearScreen()
9493
}
9594

9695

@@ -167,7 +166,6 @@ namespace user_interface_base {
167166
c: number
168167
) {
169168
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_DRAW_RECT, x + Screen.HALF_WIDTH, y + Screen.HALF_HEIGHT, width, height, c]));
170-
basic.clearScreen()
171169
}
172170

173171
public static drawRectXfrm(
@@ -186,8 +184,10 @@ namespace user_interface_base {
186184
public static fill(
187185
c: number
188186
) {
187+
let startTime = input.runningTime();
189188
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_FILL, c]));
190-
basic.clearScreen()
189+
let endTime = input.runningTime();
190+
basic.showNumber(endTime - startTime)
191191
}
192192

193193
public static fillRect(
@@ -198,7 +198,6 @@ namespace user_interface_base {
198198
c: number
199199
) {
200200
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_FILL_RECT, x + Screen.HALF_WIDTH, y + Screen.HALF_HEIGHT, width, height, c]))
201-
basic.clearScreen()
202201
}
203202

204203
public static fillRectXfrm(

0 commit comments

Comments
 (0)