Skip to content

Commit 438586b

Browse files
committed
added radio message to screen.ts fillRect().
1 parent d7e3eeb commit 438586b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bounds.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace user_interface_base {
99
return this.left + this.width - 1
1010
}
1111
public set right(val: number) {
12-
this.width = val - this.left + 1
12+
this.width = val - this.left + 1
1313
}
1414
//% blockCombine block="bottom" callInDebugger
1515
public get bottom() {
@@ -214,7 +214,7 @@ namespace user_interface_base {
214214
public top: number,
215215
public right: number,
216216
public bottom: number
217-
) {}
217+
) { }
218218

219219
public static FromSprite(s: Sprite, bounds: Bounds): Occlusions {
220220
const w = s.xfrm.worldPos

screen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ namespace user_interface_base {
135135
height: number,
136136
c: number
137137
) {
138-
radio.sendString("hi");
139138
Screen.image.drawRect(Screen.x(x), Screen.y(y), width, height, c)
140139
}
141140

@@ -158,6 +157,7 @@ namespace user_interface_base {
158157
height: number,
159158
c: number
160159
) {
160+
radio.sendString("hi");
161161
Screen.image.fillRect(Screen.x(x), Screen.y(y), width, height, c)
162162
}
163163

0 commit comments

Comments
 (0)