summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main_menu.c9
-rw-r--r--apps/plugin.c27
-rw-r--r--apps/plugin.h35
3 files changed, 61 insertions, 10 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index 329ed78..d530f4b 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -81,7 +81,6 @@ int show_logo( void )
#ifdef HAVE_REMOTE_LCD
lcd_remote_bitmap(rockbox112x37,10,14,112,37, false);
- lcd_remote_update();
#endif
#if 0
@@ -109,6 +108,14 @@ int show_logo( void )
LCD_HEIGHT-font_h, version);
lcd_update();
+#ifdef HAVE_REMOTE_LCD
+ lcd_remote_setfont(FONT_SYSFIXED);
+ lcd_remote_getstringsize("A", &font_w, &font_h);
+ lcd_remote_putsxy((LCD_REMOTE_WIDTH/2) - ((strlen(version)*font_w)/2),
+ LCD_REMOTE_HEIGHT-font_h, version);
+ lcd_remote_update();
+#endif
+
#else
char *rockbox = " ROCKbox!";
lcd_clear_display();
diff --git a/apps/plugin.c b/apps/plugin.c
index ad9c6a9..76c9ddb 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -135,11 +135,32 @@ static const struct plugin_api rockbox_api = {
splash,
#ifdef HAVE_REMOTE_LCD
lcd_remote_clear_display,
- lcd_remote_backlight_on,
- lcd_remote_backlight_off,
+ lcd_remote_puts,
+ lcd_remote_puts_scroll,
+ lcd_remote_stop_scroll,
lcd_remote_set_contrast,
- lcd_remote_update,
+ lcd_remote_putsxy,
+ lcd_remote_puts_style,
+ lcd_remote_puts_scroll_style,
lcd_remote_bitmap,
+ lcd_remote_drawline,
+ lcd_remote_clearline,
+ lcd_remote_drawpixel,
+ lcd_remote_clearpixel,
+ lcd_remote_setfont,
+ font_get,
+ lcd_remote_clearrect,
+ lcd_remote_fillrect,
+ lcd_remote_drawrect,
+ lcd_remote_invertrect,
+ lcd_remote_getstringsize,
+ lcd_remote_update,
+ lcd_remote_update_rect,
+ //id (*scrollbar)(int x, int y, int width, int height, int items,
+ // int min_shown, int max_shown, int orientation);
+ //void (*remote_checkbox)(int x, int y, int width, int height, bool checked);
+ lcd_remote_backlight_on,
+ lcd_remote_backlight_off,
&lcd_remote_framebuffer[0][0],
#endif
/* button */
diff --git a/apps/plugin.h b/apps/plugin.h
index a513183..0bb57b2 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -177,13 +177,36 @@ struct plugin_api {
void (*splash)(int ticks, bool center, const char *fmt, ...);
#ifdef HAVE_REMOTE_LCD
- void (*remote_clear_display)(void);
+ void (*remote_clear_display)(void);
+ void (*remote_puts)(int x, int y, const unsigned char *string);
+ void (*remote_lcd_puts_scroll)(int x, int y, const unsigned char* string);
+ void (*remote_lcd_stop_scroll)(void);
+ void (*remote_set_contrast)(int x);
+
+ void (*remote_putsxy)(int x, int y, const unsigned char *string);
+ void (*remote_puts_style)(int x, int y, const unsigned char *str, int style);
+ void (*remote_puts_scroll_style)(int x, int y, const unsigned char* string,
+ int style);
+ void (*remote_bitmap)(const unsigned char *src, int x, int y,
+ int nx, int ny, bool clear);
+ void (*remote_drawline)(int x1, int y1, int x2, int y2);
+ void (*remote_clearline)(int x1, int y1, int x2, int y2);
+ void (*remote_drawpixel)(int x, int y);
+ void (*remote_clearpixel)(int x, int y);
+ void (*remote_setfont)(int font);
+ struct font* (*remote_font_get)(int font);
+ void (*remote_clearrect)(int x, int y, int nx, int ny);
+ void (*remote_fillrect)(int x, int y, int nx, int ny);
+ void (*remote_drawrect)(int x, int y, int nx, int ny);
+ void (*remote_invertrect)(int x, int y, int nx, int ny);
+ int (*remote_getstringsize)(const unsigned char *str, int *w, int *h);
+ void (*remote_update)(void);
+ void (*remote_update_rect)(int x, int y, int width, int height);
+// void (*remote_scrollbar)(int x, int y, int width, int height, int items,
+// int min_shown, int max_shown, int orientation);
+ //void (*remote_checkbox)(int x, int y, int width, int height, bool checked);
void (*remote_backlight_on)(void);
- void (*remote_backlight_off)(void);
- void (*remote_set_contrast)(int val);
- void (*remote_update)(void);
- void (*remote_bitmap) (const unsigned char *src, int x, int y,
- int nx, int ny, bool clear);
+ void (*remote_backlight_off)(void);
unsigned char* lcd_remote_framebuffer;
#endif