Skip to content

Commit 26c641b

Browse files
committed
tiny ui rendering fixes
1 parent 9f68397 commit 26c641b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

examples/companion_radio/ui-tiny/ScrollingStatusBar.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class ScrollingStatusBar {
8484
ble_on ? "ON" : "OFF"
8585
);
8686

87+
display.setTextSize(1);
8788
_text_width = display.getTextWidth(_status);
8889
_next_update = millis() + STATUS_BAR_UPDATE_MS;
8990
_needs_redraw = true;
@@ -105,6 +106,10 @@ class ScrollingStatusBar {
105106
display.setTextSize(1);
106107
display.setColor(DisplayDriver::GREEN);
107108

109+
// if (_needs_redraw) {
110+
// _text_width = display.getTextWidth(_status);
111+
// }
112+
108113
// static text: no scrolling needed
109114
if (_text_width <= _display_width) {
110115
display.setCursor(0, 0);

examples/companion_radio/ui-tiny/UITask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class HomeScreen : public UIScreen {
181181
#endif
182182
if (_task->hasConnection()) {
183183
display.setColor(DisplayDriver::GREEN);
184-
display.setTextSize(2);
184+
display.setTextSize(1);
185185
display.drawTextCentered(display.width() / 2, display.height()-8, "< Connected >");
186186

187187
} else if (the_mesh.getBLEPin() != 0) { // BT pin

0 commit comments

Comments
 (0)