T-Watch - amend text wrap on settingscreen

This commit is contained in:
pelgraine
2026-07-15 06:14:11 +10:00
parent 5ce0540486
commit 3e40ccbaa1
2 changed files with 66 additions and 0 deletions
+3
View File
@@ -63,6 +63,9 @@ public:
// ticker turns wrap off so a long scrolling line is clipped at the screen
// edge instead of wrapping onto the rows below.
void setTextWrap(bool en) { buffer.setTextWrap(en, false); }
// Current print-cursor X on the sprite buffer -- lets a caller measure how
// wide a just-printed row was (used by the settings row ticker).
int getCursorX() { return buffer.getCursorX(); }
// Draw a string centred horizontally at mid_x with its top at y, in
// FreeSansBold 24pt (used for the clock HH:MM), then restore the default
// GLCD font + size so later text is unaffected.