Skip to content

Commit 94b0870

Browse files
committed
.print()
1 parent 18cc962 commit 94b0870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

screen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,11 @@ namespace user_interface_base {
459459
font?: bitmaps.Font,
460460
offsets?: texteffects.TextEffectState[]
461461
) {
462-
basic.showString("S");
462+
basic.showString("P");
463463
radio.sendString(text);
464464

465465
const c: number = (color == null) ? 0 : color;
466-
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_PRINT, x, y, c]));
466+
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_PRINT, x + Screen.HALF_WIDTH, y + Screen.HALF_HEIGHT, c]));
467467

468468
// Screen.image.print(
469469
// text,

0 commit comments

Comments
 (0)