summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-31 09:58:49 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-31 09:58:49 +0000
commit54ea2e435e1a5688de4e4dcf551a1fc9c1db323f (patch)
treee8ee4e55a20c872a6c0deff554734038c35dc661 /apps/plugin.h
parent6186b556bdbe97bc3c50dd8feb970590bec2053c (diff)
downloadrockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.tar.gz
rockbox-54ea2e435e1a5688de4e4dcf551a1fc9c1db323f.zip
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/plugin.h')
-rw-r--r--apps/plugin.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 7688057d86..cb076f5b85 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -110,12 +110,12 @@
110#define PLUGIN_MAGIC 0x526F634B /* RocK */ 110#define PLUGIN_MAGIC 0x526F634B /* RocK */
111 111
112/* increase this every time the api struct changes */ 112/* increase this every time the api struct changes */
113#define PLUGIN_API_VERSION 50 113#define PLUGIN_API_VERSION 51
114 114
115/* update this to latest version if a change to the api struct breaks 115/* update this to latest version if a change to the api struct breaks
116 backwards compatibility (and please take the opportunity to sort in any 116 backwards compatibility (and please take the opportunity to sort in any
117 new function which are "waiting" at the end of the function table) */ 117 new function which are "waiting" at the end of the function table) */
118#define PLUGIN_MIN_API_VERSION 50 118#define PLUGIN_MIN_API_VERSION 51
119 119
120/* plugin return codes */ 120/* plugin return codes */
121enum plugin_status { 121enum plugin_status {
@@ -134,6 +134,7 @@ struct plugin_api {
134 134
135 /* lcd */ 135 /* lcd */
136 void (*lcd_set_contrast)(int x); 136 void (*lcd_set_contrast)(int x);
137 void (*lcd_update)(void);
137 void (*lcd_clear_display)(void); 138 void (*lcd_clear_display)(void);
138 void (*lcd_setmargins)(int x, int y); 139 void (*lcd_setmargins)(int x, int y);
139 int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); 140 int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h);
@@ -191,7 +192,6 @@ struct plugin_api {
191 fb_data* lcd_framebuffer; 192 fb_data* lcd_framebuffer;
192 void (*lcd_blit) (const fb_data* data, int x, int by, int width, 193 void (*lcd_blit) (const fb_data* data, int x, int by, int width,
193 int bheight, int stride); 194 int bheight, int stride);
194 void (*lcd_update)(void);
195 void (*lcd_update_rect)(int x, int y, int width, int height); 195 void (*lcd_update_rect)(int x, int y, int width, int height);
196 void (*gui_scrollbar_draw)(struct screen * screen, int x, int y, 196 void (*gui_scrollbar_draw)(struct screen * screen, int x, int y,
197 int width, int height, int items, 197 int width, int height, int items,