mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-21 23:19:02 +00:00
Multi screen support, with dyn alignment (#2801)
This commit is contained in:
+6
-2
@@ -198,8 +198,12 @@ void RecentEntriesTable<ui::external_app::tpmsrx::TPMSRecentEntries>::draw(
|
||||
const Entry& entry,
|
||||
const Rect& target_rect,
|
||||
Painter& painter,
|
||||
const Style& style) {
|
||||
std::string line = ui::external_app::tpmsrx::format::type(entry.type) + " " + ui::external_app::tpmsrx::format::id(entry.id);
|
||||
const Style& style,
|
||||
RecentEntriesColumns& columns) {
|
||||
std::string line = ui::external_app::tpmsrx::format::type(entry.type) + " ";
|
||||
std::string lid = ui::external_app::tpmsrx::format::id(entry.id);
|
||||
lid.resize(columns.at(1).second, ' ');
|
||||
line += lid;
|
||||
|
||||
if (entry.last_pressure.is_valid()) {
|
||||
line += " " + ui::external_app::tpmsrx::format::pressure(entry.last_pressure.value());
|
||||
|
||||
Reference in New Issue
Block a user