diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-03-31 09:58:49 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-31 09:58:49 +0000 |
| commit | 54ea2e435e1a5688de4e4dcf551a1fc9c1db323f (patch) | |
| tree | e8ee4e55a20c872a6c0deff554734038c35dc661 /apps | |
| parent | 6186b556bdbe97bc3c50dd8feb970590bec2053c (diff) | |
| download | rockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.zip rockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.tar.gz rockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.tar.bz2 rockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.tar.xz | |
Charcell lcd driver: Preparations for switching to non-immediate LCD updates, using lcd_update() like on bitmap targets. * Added proper clipping. * Simplified simulator code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12979 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugin.c | 2 | ||||
| -rw-r--r-- | apps/plugin.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index de04269..52d4312 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -66,6 +66,7 @@ static const struct plugin_api rockbox_api = { /* lcd */ lcd_set_contrast, + lcd_update, lcd_clear_display, lcd_setmargins, lcd_getstringsize, @@ -114,7 +115,6 @@ static const struct plugin_api rockbox_api = { lcd_puts_scroll_style, &lcd_framebuffer[0][0], lcd_blit, - lcd_update, lcd_update_rect, gui_scrollbar_draw, font_get, diff --git a/apps/plugin.h b/apps/plugin.h index 7688057..cb076f5 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -110,12 +110,12 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 50 +#define PLUGIN_API_VERSION 51 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 50 +#define PLUGIN_MIN_API_VERSION 51 /* plugin return codes */ enum plugin_status { @@ -134,6 +134,7 @@ struct plugin_api { /* lcd */ void (*lcd_set_contrast)(int x); + void (*lcd_update)(void); void (*lcd_clear_display)(void); void (*lcd_setmargins)(int x, int y); int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); @@ -191,7 +192,6 @@ struct plugin_api { fb_data* lcd_framebuffer; void (*lcd_blit) (const fb_data* data, int x, int by, int width, int bheight, int stride); - void (*lcd_update)(void); void (*lcd_update_rect)(int x, int y, int width, int height); void (*gui_scrollbar_draw)(struct screen * screen, int x, int y, int width, int height, int items, |