forked from len0rd/rockbox
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
This commit is contained in:
parent
f668c36241
commit
371c86bf3f
11 changed files with 1057 additions and 356 deletions
|
|
@ -155,12 +155,12 @@ void* plugin_get_buffer(size_t *buffer_size);
|
|||
#define PLUGIN_MAGIC 0x526F634B /* RocK */
|
||||
|
||||
/* increase this every time the api struct changes */
|
||||
#define PLUGIN_API_VERSION 221
|
||||
#define PLUGIN_API_VERSION 222
|
||||
|
||||
/* 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 220
|
||||
#define PLUGIN_MIN_API_VERSION 222
|
||||
|
||||
/* plugin return codes */
|
||||
/* internal returns start at 0x100 to make exit(1..255) work */
|
||||
|
|
@ -970,8 +970,6 @@ struct plugin_api {
|
|||
void (*viewport_set_fullscreen)(struct viewport *vp,
|
||||
const enum screen_type screen);
|
||||
void (*lcd_set_framebuffer)(fb_data *fb);
|
||||
void (*lcd_bmp_part)(const struct bitmap *bm, int src_x, int src_y,
|
||||
int x, int y, int width, int height);
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue