Ver Fonte

Fix and clean.

Vladimir N. Shilov há 2 anos atrás
pai
commit
dc972f285a
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/main.c

+ 3 - 3
src/main.c

@@ -147,7 +147,7 @@ static gFont font2;
 static time_cnt_t Timer = {0}, dechTimer, chTimer;
 static btn_hndlr bha[Button_Num] = {btn1_handler, btn2_handler};
 static int menu_Active = MenuItem_1;
-static menu_colors_t menu_Colors = {Blue, Yellow, Yellow, Blue};
+static menu_colors_t menu_Colors = {Navy, Olive, Yellow, Navy};
 
 /*
  * INA process thread.
@@ -613,7 +613,6 @@ static void prepare_Screen(void) {
  */
 static void btn1_handler(button_state_t state) {
   if (state == BTN_st_Pressed) {
-    gwinPrintf(GW1, "Button 1 pressed\n");
     switch (menu_Active) {
     case MenuItem_1:
       menu_Active = MenuItem_2;
@@ -811,7 +810,8 @@ static void show_MenuItem(const int item) {
   }
 
   gdispFillStringBox(x, y1, cx, cy, buf1, font1, fgc, bgc, j1);
-  gdispFillStringBox(x, y2, cx, cy, buf2, font1, fgc, bgc, j2);
+//  gdispFillStringBox(x, y2, cx, cy, buf2, font1, fgc, bgc, j2);
+  gdispFillStringBox(x, y2, cx, cy, buf2, font1, menu_Colors.inactiveFG, menu_Colors.inactiveBG, j2);
 }
 
 /**