summaryrefslogtreecommitdiff
path: root/apps/menus/eq_menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-05 09:59:11 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-05 09:59:11 +0000
commit8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c (patch)
treea99ace107474dd7adaf39055d4c851a294c366b5 /apps/menus/eq_menu.c
parente74cc6d9da7c7eab96cb06147903c75c1f9c06c7 (diff)
downloadrockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.tar.gz
rockbox-8b9fdb540c9bf10c0939cb4a529688bd3e79ff9c.zip
redo how the statusbar updates are done. send the EVENT_GUI_ACTIONUPDATE event every time get_action() is called. The event wont be as realiable (timewise) as before, but seems to work better
This also fixes FS#9761. Also set the lcd font back to the ui font from the debug screens which use sysfont git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19681 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/eq_menu.c')
-rw-r--r--apps/menus/eq_menu.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index 77b6e6f07a..28df0836fc 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -49,6 +49,7 @@
49#include "gui/scrollbar.h" 49#include "gui/scrollbar.h"
50#include "eq_menu.h" 50#include "eq_menu.h"
51#include "menu_common.h" 51#include "menu_common.h"
52#include "viewport.h"
52 53
53/* 54/*
54 * Utility functions 55 * Utility functions
@@ -391,6 +392,7 @@ bool eq_menu_graphical(void)
391 enum eq_type current_type; 392 enum eq_type current_type;
392 char buf[24]; 393 char buf[24];
393 int i, w, h, height, start_item, nb_eq_sliders[NB_SCREENS]; 394 int i, w, h, height, start_item, nb_eq_sliders[NB_SCREENS];
395 bool barsenabled = viewportmanager_set_statusbar(false);
394 396
395 397
396 FOR_NB_SCREENS(i) { 398 FOR_NB_SCREENS(i) {
@@ -553,12 +555,6 @@ bool eq_menu_graphical(void)
553 exit_request = true; 555 exit_request = true;
554 result = false; 556 result = false;
555 break; 557 break;
556 case SYS_FOURHERTZ:
557 /* eat this for the time being. this whole screen needs to be converted
558 * to viewports, so when that happens this message can be handled
559 * properly.
560 */
561 break;
562 default: 558 default:
563 if(default_event_handler(button) == SYS_USB_CONNECTED) { 559 if(default_event_handler(button) == SYS_USB_CONNECTED) {
564 exit_request = true; 560 exit_request = true;
@@ -580,7 +576,7 @@ bool eq_menu_graphical(void)
580 screens[i].clear_display(); 576 screens[i].clear_display();
581 screens[i].set_viewport(NULL); 577 screens[i].set_viewport(NULL);
582 } 578 }
583 579 viewportmanager_set_statusbar(barsenabled);
584 return result; 580 return result;
585} 581}
586 582