# HG changeset patch
# User Jan Mulder <jlmulder@xs4all.nl>
# Date 1552208998 -3600
# Node ID 842f57bbaaadf6ec3f36ed39fa94773ca2d6a7e4
# Parent  5e41365ff0d89372b2840b6a73ef5a8fc464aa64
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>

diff -r 5e41365ff0d8 -r 842f57bbaaad Discovery/Src/gfx_fonts.c
--- a/Discovery/Src/gfx_fonts.c	Fri Mar 08 13:47:52 2019 +0100
+++ b/Discovery/Src/gfx_fonts.c	Sun Mar 10 10:09:58 2019 +0100
@@ -18,9 +18,9 @@
 
 #include "gfx_fonts.h"
 
-#ifdef DEBUG
+//#ifdef DEBUG
 # 	define INCLUDE_FONTS_BINARY
-#endif
+//#endif
 
 #ifdef INCLUDE_FONTS_BINARY
 
diff -r 5e41365ff0d8 -r 842f57bbaaad Discovery/Src/tMenu.c
--- 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;
             }