TUI: fix formatting speed label

This commit is contained in:
Hendrik Schutter 2022-10-01 13:28:40 +02:00
parent 18ea170881
commit c4adf03bf5
1 changed files with 6 additions and 6 deletions

View File

@ -375,11 +375,11 @@ WINDOW* TUI::createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,
0-2: space 0-2: space
3-31: Serial 3-31: Serial
32: space 32: space
33-42: Speed 33-45: Speed
43: space 46: space
44-55: Time 47-58: Time
55: space 59: space
56-70: State (but right side aligned) 60-70: State (but right side aligned)
*/ */
vTruncateText(&sModelFamily, 32); vTruncateText(&sModelFamily, 32);
@ -390,7 +390,7 @@ WINDOW* TUI::createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,
vTruncateText(&sSerial, 28); vTruncateText(&sSerial, 28);
mvwaddstr(newWindow, 2, 3, sSerial.c_str()); mvwaddstr(newWindow, 2, 3, sSerial.c_str());
mvwaddstr(newWindow, 2, 33, sSpeed.c_str()); mvwaddstr(newWindow, 2, 33, sSpeed.c_str());
mvwaddstr(newWindow, 2, 44, sTime.c_str()); mvwaddstr(newWindow, 2, 47, sTime.c_str());
mvwaddstr(newWindow,2, iXSize - sState.length() - 2, sState.c_str()); mvwaddstr(newWindow,2, iXSize - sState.length() - 2, sState.c_str());
return newWindow; return newWindow;