1
0
Fork 0
forked from len0rd/rockbox

Do not export load_main_backdrop() via the plugin API. Plugins should allocate their own buffer and use lcd_set_backdrop()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9313 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-03-28 16:04:11 +00:00
parent 47f4a458d6
commit 39876971a8
4 changed files with 2 additions and 3 deletions

View file

@ -414,7 +414,6 @@ static const struct plugin_api rockbox_api = {
vsnprintf,
memchr,
load_main_backdrop
};
int plugin_load(const char* plugin, void* parameter)

View file

@ -483,7 +483,6 @@ struct plugin_api {
int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap);
void *(*memchr)(const void *s1, int c, size_t n);
bool (*load_main_backdrop)(char* filename);
};
/* plugin header */

View file

@ -642,6 +642,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->lcd_setfont(0);
#ifdef FANCY_MENU
/* TO FIX: Don't use load_main_backdrop() - use lcd_set_backdrop() */
if(rb->load_main_backdrop(GAMEBASE"backdrop.bmp"))
rb->lcd_set_foreground(LCD_RGBPACK(85,208,56));

View file

@ -89,5 +89,5 @@ inline void* memcpy(void* dst, const void* src, size_t size);
//#define SIMPLECHECKS
#define NO_PREDEFINED_LUMPS
#define TABLES_AS_LUMPS // This frees up alot of space in the plugin buffer
#define FANCY_MENU // This is a call to allow load_main_backdrop to run in doom
//#define FANCY_MENU // This is a call to allow load_main_backdrop to run in doom
#endif