Fixes #6721 - Tests needed

This commit is contained in:
Bertrand Songis
2019-09-10 14:38:39 +02:00
parent 11baf9bc1a
commit 465674ca68
4 changed files with 33 additions and 28 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ bool menuTextView(event_t event)
{
static int lines_count;
drawMenuTemplate(STR_TEXT_VIEWER, ICON_OPENTX);
drawMenuTemplate(STR_TEXT_VIEWER, ICON_OPENTX, nullptr, OPTION_MENU_NO_SCROLLBAR);
switch (event) {
case EVT_ENTRY:
@@ -42,7 +42,7 @@ bool menuTextView(event_t event)
break;
case EVT_ROTARY_RIGHT:
if (menuVerticalOffset+NUM_BODY_LINES >= lines_count)
if (menuVerticalOffset + NUM_BODY_LINES >= lines_count)
break;
else
++menuVerticalOffset;