Mercurial > public > ostc4
changeset 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 | 5ca88855da87 |
files | Discovery/Src/gfx_fonts.c Discovery/Src/tMenu.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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; }