summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-12 23:46:50 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-12 23:46:50 +0000
commit89d6e950fd6c76c15eec15ef513e44c147fa3862 (patch)
treef196477fb9e00c43238173789ef5471c5bc6c39f
parent426df39c4c7900d6e2ec4f0f8a9087a08c3405f0 (diff)
downloadrockbox-89d6e950fd6c76c15eec15ef513e44c147fa3862.tar.gz
rockbox-89d6e950fd6c76c15eec15ef513e44c147fa3862.zip
Added a number of new graphics functions to the plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7127 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugin.c8
-rw-r--r--apps/plugin.h12
2 files changed, 19 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 58b12fb0b8..f346cf792f 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -333,6 +333,14 @@ static const struct plugin_api rockbox_api = {
&rundb_fd,
&rundb_initialized,
strncmp,
+#if LCD_DEPTH > 1
+ lcd_set_foreground,
+ lcd_get_foreground,
+ lcd_set_background,
+ lcd_get_background,
+ lcd_bitmap_part,
+ lcd_bitmap,
+#endif
};
int plugin_load(const char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index c572ccbf65..7dff074d92 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -87,7 +87,7 @@
#endif
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 44
+#define PLUGIN_API_VERSION 45
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -403,6 +403,16 @@ struct plugin_api {
int *rundb_fd;
int *rundb_initialized;
int (*strncmp)(const char *, const char *, size_t);
+#if LCD_DEPTH > 1
+ void (*lcd_set_foreground)(int brightness);
+ int (*lcd_get_foreground)(void);
+ void (*lcd_set_background)(int brightness);
+ int (*lcd_get_background)(void);
+ void (*lcd_bitmap_part)(const unsigned char *src, int src_x, int src_y,
+ int stride, int x, int y, int width, int height);
+ void (*lcd_bitmap)(const unsigned char *src, int x, int y, int width,
+ int height);
+#endif
};
int plugin_load(const char* plugin, void* parameter);