forked from len0rd/rockbox
Convert some more stuff to mylcd_ and support pgfx as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26543 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bc26fe7a96
commit
e63e84a5df
16 changed files with 224 additions and 214 deletions
|
@ -24,20 +24,15 @@
|
|||
#include "plugin.h"
|
||||
#include "lib/grey.h"
|
||||
#include "lib/jpeg_mem.h"
|
||||
#include "lib/mylcd.h"
|
||||
PLUGIN_HEADER
|
||||
|
||||
/* different graphics libraries */
|
||||
#if LCD_DEPTH < 8
|
||||
#define USEGSLIB
|
||||
GREY_INFO_STRUCT
|
||||
#define MYLCD(fn) grey_ub_ ## fn
|
||||
#define MYLCD_UPDATE()
|
||||
#define MYXLCD(fn) grey_ub_ ## fn
|
||||
#define CFORMAT &format_grey
|
||||
#else
|
||||
#define MYLCD(fn) rb->lcd_ ## fn
|
||||
#define MYLCD_UPDATE() rb->lcd_update();
|
||||
#define MYXLCD(fn) xlcd_ ## fn
|
||||
#define CFORMAT &format_native
|
||||
#endif
|
||||
|
||||
|
@ -94,7 +89,7 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
rb->lcd_bitmap((fb_data *)bm.data, (LCD_WIDTH - bm.width) >> 1,
|
||||
(LCD_HEIGHT - bm.height) >> 1, bm.width, bm.height);
|
||||
#endif
|
||||
MYLCD_UPDATE();
|
||||
mylcd_ub_update();
|
||||
while (rb->get_action(CONTEXT_STD,1) != ACTION_STD_OK) rb->yield();
|
||||
#ifdef USEGSLIB
|
||||
grey_release();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue