From 2eb1cb6f826a6542b3947f36a57130de235e530e Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 7 Sep 2009 17:37:06 +0000 Subject: Fix buttonbar handling/theme changed handling in lists. The lists need to copy to a local parent if a list passes NULL as parent in the init. This was before the commit of custom ui vp, but I removed it since I (wrongly) thought using the ui vp as parent would be fine. Let the viewportmanager fire a event in case when a theme-related setting changed and simply the handling in the lists code. However the buttonbar handling didn't work before anyway, since list code didn't know if the buttonbar was active (it asked a variable which was always false....). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22651 a1c6a512-1295-4272-9138-f99709370657 --- apps/screen_access.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'apps/screen_access.c') diff --git a/apps/screen_access.c b/apps/screen_access.c index d0b483f3f4..5b2b4724f1 100644 --- a/apps/screen_access.c +++ b/apps/screen_access.c @@ -56,7 +56,7 @@ static int screen_helper_getnblines(void) { int height=screens[0].lcdheight; #ifdef HAVE_LCD_BITMAP - if(global_settings.statusbar) + if(global_settings.statusbar != STATUSBAR_OFF) height -= STATUSBAR_HEIGHT; #ifdef HAVE_BUTTONBAR if(global_settings.buttonbar && screens[0].has_buttonbar) @@ -89,10 +89,10 @@ static int screen_helper_remote_getnblines(void) { int height=screens[1].lcdheight; #ifdef HAVE_LCD_BITMAP - if(global_settings.statusbar) + if(global_settings.statusbar != STATUSBAR_OFF) height -= STATUSBAR_HEIGHT; #ifdef HAVE_BUTTONBAR - if(global_settings.buttonbar && screens[0].has_buttonbar) + if(global_settings.buttonbar && screens[1].has_buttonbar) height -= BUTTONBAR_HEIGHT; #endif #endif @@ -286,6 +286,9 @@ struct screen screens[NB_SCREENS] = .backdrop_load=&remote_backdrop_load, .backdrop_unload=&remote_backdrop_unload, .backdrop_show=&remote_backdrop_show, +#ifdef HAVE_BUTTONBAR + .has_buttonbar=false, +#endif } #endif /* HAVE_REMOTE_LCD */ }; -- cgit v1.2.3