TUI: fix formatting speed label
This commit is contained in:
parent
18ea170881
commit
c4adf03bf5
12
src/tui.cpp
12
src/tui.cpp
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue