mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-07 04:36:11 +00:00
fix(ui): remove space in hibernate hint formatting
This commit is contained in:
@@ -762,7 +762,7 @@ public:
|
|||||||
const int lh1 = display.getLineHeight();
|
const int lh1 = display.getLineHeight();
|
||||||
if (text_y + lh1 <= display.height()) {
|
if (text_y + lh1 <= display.height()) {
|
||||||
char hib_hint[32];
|
char hib_hint[32];
|
||||||
snprintf(hib_hint, sizeof(hib_hint), "hibernate: %s", PRESS_LABEL);
|
snprintf(hib_hint, sizeof(hib_hint), "hibernate:%s", PRESS_LABEL);
|
||||||
if (display.getTextWidth(hib_hint) < display.width()) {
|
if (display.getTextWidth(hib_hint) < display.width()) {
|
||||||
display.drawTextCentered(display.width() / 2, text_y, hib_hint);
|
display.drawTextCentered(display.width() / 2, text_y, hib_hint);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user