mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add backdrop functions to the multiscreen api and add a enum backdrop_type parameter for different backdrops (main, wps), symplifying calls and removing dozens of #ifdefs (stubs added for non-backdrop displays that can't do backdrops).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22176 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4632fc0682
commit
4764ee04c9
13 changed files with 185 additions and 144 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "lcd.h"
|
||||
#include "buttonbar.h"
|
||||
#include "backdrop.h"
|
||||
|
||||
enum screen_type {
|
||||
SCREEN_MAIN
|
||||
|
@ -152,6 +153,9 @@ struct screen
|
|||
void (*backlight_off)(void);
|
||||
bool (*is_backlight_on)(bool ignore_always_off);
|
||||
void (*backlight_set_timeout)(int index);
|
||||
bool (*backdrop_load)(enum backdrop_type bdrop, const char* filename);
|
||||
void (*backdrop_unload)(enum backdrop_type bdrop);
|
||||
void (*backdrop_show)(enum backdrop_type bdrop);
|
||||
};
|
||||
|
||||
#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue