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
3-31: Serial
32: space
33-42: Speed
43: space
44-55: Time
55: space
56-70: State (but right side aligned)
33-45: Speed
46: space
47-58: Time
59: space
60-70: State (but right side aligned)
*/
vTruncateText(&sModelFamily, 32);
@ -390,7 +390,7 @@ WINDOW* TUI::createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,
vTruncateText(&sSerial, 28);
mvwaddstr(newWindow, 2, 3, sSerial.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());
return newWindow;