Skip to content

Commit 491efe3

Browse files
committed
🚸 Fix LCD centering
Follow up to #26339 Applies same fix from #26415
1 parent aed5772 commit 491efe3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Marlin/src/lcd/HD44780/marlinui_HD44780.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ void MarlinUI::draw_status_screen() {
11791179
int8_t llen = ftpl ? expand_u8str(estr, ftpl, itemIndex, itemStringC, itemStringF, n - vlen) : 0;
11801180

11811181
bool mv_colon = false;
1182-
if (vlen) {
1182+
if (vlen && !center) {
11831183
// Move the leading colon from the value to the label below
11841184
mv_colon = (*vstr == ':');
11851185
// Shorter value, wider label

Marlin/src/lcd/TFTGLCD/marlinui_TFTGLCD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ void MarlinUI::draw_status_screen() {
983983
int8_t llen = ftpl ? expand_u8str(estr, ftpl, itemIndex, itemStringC, itemStringF, n - vlen) : 0;
984984

985985
bool mv_colon = false;
986-
if (vlen) {
986+
if (vlen && !center) {
987987
// Move the leading colon from the value to the label below
988988
mv_colon = (*vstr == ':');
989989
// Shorter value, wider label

Marlin/src/lcd/e3v2/marlinui/ui_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void MarlinUI::draw_status_message(const bool blink) {
324324
int8_t vlen = vstr ? utf8_strlen(vstr) : 0;
325325

326326
bool mv_colon = false;
327-
if (vlen) {
327+
if (vlen && !center) {
328328
// Move the leading colon from the value to the label below
329329
mv_colon = (*vstr == ':');
330330
// Shorter value, wider label

0 commit comments

Comments
 (0)