First stable version #58
10
src/tui.cpp
10
src/tui.cpp
|
@ -170,14 +170,12 @@ void TUI::updateTUI(list <Drive>* plistDrives, uint8_t u8SelectedEntry)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t u16StartOffsetY = (6 * (u8Index));
|
uint16_t u16StartOffsetY = (4 * (u8Index));
|
||||||
|
|
||||||
if(u8Index == 0)
|
|
||||||
{
|
Logger::logThis()->info("Index: " + to_string(u8Index) + " Offset: " + to_string(u16StartOffsetY));
|
||||||
u16StartOffsetY = u16StartOffsetY + 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
WINDOW * tmp = createEntryWindow( (int)(u16StdscrX *(float)(3.0/7.0) - 2), 4, 3, u16StartOffsetY, (distance(plistDrives->begin(), it)+1), sModelFamily, sSerial, sCapacity, sState, sTime, sSpeed, sTemp, bSelectedEntry);
|
WINDOW * tmp = createEntryWindow( (int)(u16StdscrX *(float)(3.0/7.0) - 2), 4, 3, u16StartOffsetY + 2, (distance(plistDrives->begin(), it)+1), sModelFamily, sSerial, sCapacity, sState, sTime, sSpeed, sTemp, bSelectedEntry);
|
||||||
wrefresh(tmp);
|
wrefresh(tmp);
|
||||||
u8Index++;
|
u8Index++;
|
||||||
}//end loop though drives
|
}//end loop though drives
|
||||||
|
|
Loading…
Reference in New Issue