mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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
|
|
@ -39,6 +39,7 @@
|
|||
#include "viewport.h"
|
||||
#include "file.h"
|
||||
#include "splash.h"
|
||||
#include "appevents.h"
|
||||
|
||||
#ifndef O_BINARY
|
||||
#define O_BINARY 0
|
||||
|
|
@ -1243,11 +1244,13 @@ int kbd_input(char* text, int buflen)
|
|||
global_settings.buttonbar = buttonbar_config;
|
||||
#endif
|
||||
|
||||
if (ret < 0)
|
||||
splash(HZ/2, ID2P(LANG_CANCEL));
|
||||
|
||||
FOR_NB_SCREENS(l)
|
||||
screens[l].setfont(FONT_UI);
|
||||
viewportmanager_set_statusbar(oldbars);
|
||||
send_event(GUI_EVENT_REFRESH, NULL);
|
||||
|
||||
if (ret < 0)
|
||||
splash(HZ/2, ID2P(LANG_CANCEL));
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@
|
|||
#include "viewport.h"
|
||||
#include "list.h"
|
||||
#include "general.h"
|
||||
#include "appevents.h"
|
||||
|
||||
#ifdef HAVE_RECORDING
|
||||
/* This array holds the record timer interval lengths, in seconds */
|
||||
|
|
@ -1924,9 +1925,11 @@ rec_abort:
|
|||
rec_status &= ~RCSTAT_IN_RECSCREEN;
|
||||
sound_settings_apply();
|
||||
|
||||
viewportmanager_set_statusbar(oldbars);
|
||||
FOR_NB_SCREENS(i)
|
||||
screens[i].setfont(FONT_UI);
|
||||
|
||||
viewportmanager_set_statusbar(oldbars);
|
||||
send_event(GUI_EVENT_REFRESH, NULL);
|
||||
|
||||
/* if the directory was created or recording happened, make sure the
|
||||
browser is updated */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue