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/recorder/recording.c | |
parent | c0897a8002d493244efd69fca5c433dbafe8d5be (diff) | |
download | rockbox-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/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 9bcbf8be68..2716d932b5 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -76,6 +76,7 @@ | |||
76 | #include "viewport.h" | 76 | #include "viewport.h" |
77 | #include "list.h" | 77 | #include "list.h" |
78 | #include "general.h" | 78 | #include "general.h" |
79 | #include "appevents.h" | ||
79 | 80 | ||
80 | #ifdef HAVE_RECORDING | 81 | #ifdef HAVE_RECORDING |
81 | /* This array holds the record timer interval lengths, in seconds */ | 82 | /* This array holds the record timer interval lengths, in seconds */ |
@@ -1924,9 +1925,11 @@ rec_abort: | |||
1924 | rec_status &= ~RCSTAT_IN_RECSCREEN; | 1925 | rec_status &= ~RCSTAT_IN_RECSCREEN; |
1925 | sound_settings_apply(); | 1926 | sound_settings_apply(); |
1926 | 1927 | ||
1927 | viewportmanager_set_statusbar(oldbars); | ||
1928 | FOR_NB_SCREENS(i) | 1928 | FOR_NB_SCREENS(i) |
1929 | screens[i].setfont(FONT_UI); | 1929 | screens[i].setfont(FONT_UI); |
1930 | |||
1931 | viewportmanager_set_statusbar(oldbars); | ||
1932 | send_event(GUI_EVENT_REFRESH, NULL); | ||
1930 | 1933 | ||
1931 | /* if the directory was created or recording happened, make sure the | 1934 | /* if the directory was created or recording happened, make sure the |
1932 | browser is updated */ | 1935 | browser is updated */ |