forked from len0rd/rockbox
User definable UI viewport, to be able to restrict the UI into a viewport for all bitmap displays.
Flyspray: FS#8799 This will allow for pretty themes, for example those with nice glass effects on their backdrops (some might argue they're wasting screen space but it's upto them), as well as allowing for future background WPS updates in the main UI. Plugins are not converted yet, they simply use the full screen. Ideally, any plugin that does *not* want the UI viewport, should take care of that itself (i.e. plugins should normally use the UI viewport). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22365 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c0897a8002
commit
4c48b59be8
22 changed files with 355 additions and 104 deletions
11
apps/main.c
11
apps/main.c
|
|
@ -72,6 +72,7 @@
|
|||
#include "eeprom_settings.h"
|
||||
#include "scrobbler.h"
|
||||
#include "icon.h"
|
||||
#include "viewport.h"
|
||||
|
||||
#ifdef IPOD_ACCESSORY_PROTOCOL
|
||||
#include "iap.h"
|
||||
|
|
@ -135,9 +136,8 @@ static void app_main(void)
|
|||
screens[i].update();
|
||||
}
|
||||
tree_gui_init();
|
||||
viewportmanager_set_statusbar(VP_SB_ALLSCREENS);
|
||||
add_event(GUI_EVENT_STATUSBAR_TOGGLE, false,
|
||||
viewportmanager_statusbar_changed);
|
||||
gui_syncstatusbar_init(&statusbars);
|
||||
viewportmanager_init();
|
||||
#ifdef HAVE_USBSTACK
|
||||
/* All threads should be created and public queues registered by now */
|
||||
usb_start_monitoring();
|
||||
|
|
@ -296,8 +296,6 @@ static void init(void)
|
|||
#ifdef DEBUG
|
||||
debug_init();
|
||||
#endif
|
||||
/* Must be done before any code uses the multi-screen APi */
|
||||
gui_syncstatusbar_init(&statusbars);
|
||||
storage_init();
|
||||
settings_reset();
|
||||
settings_load(SETTINGS_ALL);
|
||||
|
|
@ -419,9 +417,6 @@ static void init(void)
|
|||
radio_init();
|
||||
#endif
|
||||
|
||||
/* Must be done before any code uses the multi-screen APi */
|
||||
gui_syncstatusbar_init(&statusbars);
|
||||
|
||||
#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
|
||||
/* charger_inserted() can't be used here because power_thread()
|
||||
hasn't checked power_input_status() yet */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue