diff --git a/radio/src/gui/colorlcd/view_text.cpp b/radio/src/gui/colorlcd/view_text.cpp index a4a968106..fcc4f0480 100644 --- a/radio/src/gui/colorlcd/view_text.cpp +++ b/radio/src/gui/colorlcd/view_text.cpp @@ -55,6 +55,13 @@ void ViewTextWindow::extractNameSansExt() openFromEnd = !strcmp(ext, LOGS_EXT); } +void ViewTextWindow::buildBody(Window *window) +{ + GridLayout grid(window); + grid.spacer(); + int i; + FIL file; + // assume average characte is 10 pixels wide, round the string length to tens. // Font is not fixed width, so this is for the worst case... maxLineLength = static_cast(window->width() / 10 / 10) * 10 - 2;