summaryrefslogtreecommitdiff
path: root/apps/debug_menu.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/debug_menu.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/debug_menu.c')
-rw-r--r--apps/debug_menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index a4a399d616..ea53d445fd 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -100,6 +100,7 @@
100#if CONFIG_RTC == RTC_PCF50605 100#if CONFIG_RTC == RTC_PCF50605
101#include "pcf50605.h" 101#include "pcf50605.h"
102#endif 102#endif
103#include "appevents.h"
103 104
104#if CONFIG_CPU == DM320 || CONFIG_CPU == S3C2440 || CONFIG_CPU == TCC7801 \ 105#if CONFIG_CPU == DM320 || CONFIG_CPU == S3C2440 || CONFIG_CPU == TCC7801 \
105 || CONFIG_CPU == IMX31L || CONFIG_CPU == AS3525 || CONFIG_CPU == JZ4732 106 || CONFIG_CPU == IMX31L || CONFIG_CPU == AS3525 || CONFIG_CPU == JZ4732
@@ -2790,6 +2791,7 @@ static int menu_action_callback(int btn, struct gui_synclist *lists)
2790 int oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); 2791 int oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL);
2791 menuitems[gui_synclist_get_sel_pos(lists)].function(); 2792 menuitems[gui_synclist_get_sel_pos(lists)].function();
2792 btn = ACTION_REDRAW; 2793 btn = ACTION_REDRAW;
2794 send_event(GUI_EVENT_REFRESH, NULL);
2793 viewportmanager_set_statusbar(oldbars); 2795 viewportmanager_set_statusbar(oldbars);
2794 } 2796 }
2795 return btn; 2797 return btn;