diff Discovery/Src/tMenu.c @ 169:842f57bbaaad cleanup-1

Bugfix: highlight the menu underline correctly on selected state This fixes an optical bug. In dive and simulation mode, the underline in the top menu was not highlighted correctly for the DECO ans SYS submenu's. The check when to highlight simply was not correct. And, yes, this part of the code is rather obfuscated, and deserves some attention later on. Reported-by: Matthias Heinrichs <matthias.heinrichs@heinrichsweikamp.com> Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Sun, 10 Mar 2019 10:09:58 +0100
parents 5e41365ff0d8
children 2bb1db22b5f5
line wrap: on
line diff
--- a/Discovery/Src/tMenu.c	Fri Mar 08 13:47:52 2019 +0100
+++ b/Discovery/Src/tMenu.c	Sun Mar 10 10:09:58 2019 +0100
@@ -300,7 +300,7 @@
 }
 
 
-void tM_create_pagenumbering(void)
+static void tM_create_pagenumbering(void)
 {
     menu.pageCountTotal = 0;
 
@@ -1198,7 +1198,7 @@
                 k4text = k-1;
 
             color_top.al8[0] = CLUT_MenuPageGasOC + k - 1;
-            if(k4text == page)
+            if (k == page)
             {
                 color_top.al8[1] = 0xFF;
             }