diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-08-16 22:20:11 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-16 22:20:11 +0000 |
| commit | 4c48b59be8ba41b80350d5329d0f13240229da0a (patch) | |
| tree | e8cb9547c4d8d5faff39de2aef5626a5cabc689d /apps/settings.c | |
| parent | c0897a8002d493244efd69fca5c433dbafe8d5be (diff) | |
| download | rockbox-4c48b59be8ba41b80350d5329d0f13240229da0a.zip rockbox-4c48b59be8ba41b80350d5329d0f13240229da0a.tar.gz rockbox-4c48b59be8ba41b80350d5329d0f13240229da0a.tar.bz2 rockbox-4c48b59be8ba41b80350d5329d0f13240229da0a.tar.xz | |
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
Diffstat (limited to 'apps/settings.c')
| -rw-r--r-- | apps/settings.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/settings.c b/apps/settings.c index 1b0abfb..48571db 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -65,12 +65,12 @@ #include "filetypes.h" #include "option_select.h" #include "backdrop.h" -#include "appevents.h" #if CONFIG_TUNER #include "radio.h" #endif #include "wps.h" #include "skin_engine/skin_engine.h" +#include "viewport.h" #if CONFIG_CODEC == MAS3507D void dac_line_in(bool enable); @@ -761,6 +761,7 @@ void settings_apply_skins(void) void settings_apply(bool read_disk) { + char buf[64]; #if CONFIG_CODEC == SWCODEC int i; @@ -985,9 +986,9 @@ void settings_apply(bool read_disk) #if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC enc_global_settings_apply(); #endif - send_event(GUI_EVENT_STATUSBAR_TOGGLE, NULL); - list_init_viewports(NULL); - send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); +#ifdef HAVE_LCD_BITMAP + viewportmanager_theme_changed(THEME_ALL); +#endif } @@ -1109,7 +1110,8 @@ bool set_int_ex(const unsigned char* string, item.lang_id = -1; item.cfg_vals = (char*)string; item.setting = (void *)variable; - return option_screen(&item, NULL, false, NULL); + return option_screen(&item, + viewport_get_current_vp(), false, NULL); } |