summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-16 22:20:11 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-16 22:20:11 +0000
commit4c48b59be8ba41b80350d5329d0f13240229da0a (patch)
treee8cb9547c4d8d5faff39de2aef5626a5cabc689d /apps/settings.c
parentc0897a8002d493244efd69fca5c433dbafe8d5be (diff)
downloadrockbox-4c48b59be8ba41b80350d5329d0f13240229da0a.tar.gz
rockbox-4c48b59be8ba41b80350d5329d0f13240229da0a.zip
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.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 1b0abfbf46..48571db20e 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -65,12 +65,12 @@
65#include "filetypes.h" 65#include "filetypes.h"
66#include "option_select.h" 66#include "option_select.h"
67#include "backdrop.h" 67#include "backdrop.h"
68#include "appevents.h"
69#if CONFIG_TUNER 68#if CONFIG_TUNER
70#include "radio.h" 69#include "radio.h"
71#endif 70#endif
72#include "wps.h" 71#include "wps.h"
73#include "skin_engine/skin_engine.h" 72#include "skin_engine/skin_engine.h"
73#include "viewport.h"
74 74
75#if CONFIG_CODEC == MAS3507D 75#if CONFIG_CODEC == MAS3507D
76void dac_line_in(bool enable); 76void dac_line_in(bool enable);
@@ -761,6 +761,7 @@ void settings_apply_skins(void)
761 761
762void settings_apply(bool read_disk) 762void settings_apply(bool read_disk)
763{ 763{
764
764 char buf[64]; 765 char buf[64];
765#if CONFIG_CODEC == SWCODEC 766#if CONFIG_CODEC == SWCODEC
766 int i; 767 int i;
@@ -985,9 +986,9 @@ void settings_apply(bool read_disk)
985#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC 986#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC
986 enc_global_settings_apply(); 987 enc_global_settings_apply();
987#endif 988#endif
988 send_event(GUI_EVENT_STATUSBAR_TOGGLE, NULL); 989#ifdef HAVE_LCD_BITMAP
989 list_init_viewports(NULL); 990 viewportmanager_theme_changed(THEME_ALL);
990 send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); 991#endif
991} 992}
992 993
993 994
@@ -1109,7 +1110,8 @@ bool set_int_ex(const unsigned char* string,
1109 item.lang_id = -1; 1110 item.lang_id = -1;
1110 item.cfg_vals = (char*)string; 1111 item.cfg_vals = (char*)string;
1111 item.setting = (void *)variable; 1112 item.setting = (void *)variable;
1112 return option_screen(&item, NULL, false, NULL); 1113 return option_screen(&item,
1114 viewport_get_current_vp(), false, NULL);
1113} 1115}
1114 1116
1115 1117