summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-12-07 01:50:52 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-12-18 19:16:26 -0500
commit371c86bf3f4d1708fc40db2aa7fa572eb429d0b4 (patch)
treebe339c62eac616ac6938c2929349b72377c10ee2 /apps/plugin.h
parentf668c3624184fedc14d34f87ad7b5f1e43bc87a1 (diff)
downloadrockbox-371c86bf3f4d1708fc40db2aa7fa572eb429d0b4.tar.gz
rockbox-371c86bf3f4d1708fc40db2aa7fa572eb429d0b4.zip
Adapt OSD in plugin lib to be greylib compatible.
Requires addition of viewports and alternate framebuffers to greylib which are essentially similar to the core implementation except that the framebuffer can be any size and relationship to a viewport. Drawing is always fully clipped to the intersecting area. Adapt oscilloscope.c to the API change. FFT will use the new features (later update). Get rid of silly and wrong lcd_bmp_part use in OSD. Remove it from plugin API (must be made incompatible now). Change-Id: Iafa5e2174148fb8ad11db6b9d4add0dcabc5c563
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index b8ed7a9084..b34a5cf0de 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -155,12 +155,12 @@ void* plugin_get_buffer(size_t *buffer_size);
155#define PLUGIN_MAGIC 0x526F634B /* RocK */ 155#define PLUGIN_MAGIC 0x526F634B /* RocK */
156 156
157/* increase this every time the api struct changes */ 157/* increase this every time the api struct changes */
158#define PLUGIN_API_VERSION 221 158#define PLUGIN_API_VERSION 222
159 159
160/* update this to latest version if a change to the api struct breaks 160/* update this to latest version if a change to the api struct breaks
161 backwards compatibility (and please take the opportunity to sort in any 161 backwards compatibility (and please take the opportunity to sort in any
162 new function which are "waiting" at the end of the function table) */ 162 new function which are "waiting" at the end of the function table) */
163#define PLUGIN_MIN_API_VERSION 220 163#define PLUGIN_MIN_API_VERSION 222
164 164
165/* plugin return codes */ 165/* plugin return codes */
166/* internal returns start at 0x100 to make exit(1..255) work */ 166/* internal returns start at 0x100 to make exit(1..255) work */
@@ -970,8 +970,6 @@ struct plugin_api {
970 void (*viewport_set_fullscreen)(struct viewport *vp, 970 void (*viewport_set_fullscreen)(struct viewport *vp,
971 const enum screen_type screen); 971 const enum screen_type screen);
972 void (*lcd_set_framebuffer)(fb_data *fb); 972 void (*lcd_set_framebuffer)(fb_data *fb);
973 void (*lcd_bmp_part)(const struct bitmap *bm, int src_x, int src_y,
974 int x, int y, int width, int height);
975#endif 973#endif
976}; 974};
977 975