From 749bc218980e1b6afc6eb3966701605468779be6 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 22 Feb 2018 10:12:03 +1100 Subject: [PATCH] Support up to 7 icons at the bottom --- common/menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/menu.c b/common/menu.c index 39e0dd3..0461d97 100644 --- a/common/menu.c +++ b/common/menu.c @@ -34,7 +34,7 @@ static void drawEntry(menuEntry_s* me, int n, int is_active) { int x, y; int start_y = 720 - 100 - 140;//*(n % 2); int end_y = start_y + 140 + 32; - int start_x = 64 + (140 + 40) * n;//(n / 2); + int start_x = 32 + (140 + 40) * n;//(n / 2); int end_x = start_x + 140; const uint8_t *smallimg = NULL; const uint8_t *largeimg = NULL; @@ -240,10 +240,10 @@ void menuLoop() { { // Draw menu entries for (me = menu->firstEntry, i = 0; me; me = me->next, i ++) { - if ((i < menu->curEntry && menu->curEntry-i < 4) || i>=menu->curEntry) { + if ((i < menu->curEntry && menu->curEntry-i < 7) || i>=menu->curEntry) { drawEntry(me, cnt, i==menu->curEntry); cnt++; - if (cnt==4) break; + if (cnt==7) break; } } }