diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-06-28 23:15:47 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-28 23:15:47 +0000 |
| commit | 7e11acbce9b9a63c28ded055d02301175391e027 (patch) | |
| tree | ea8d30e7281e8d720d6dc8ea51804e1749282697 /apps/plugin.h | |
| parent | c2bf5dfe12978b44d5d890a37f256c8d9f510660 (diff) | |
| download | rockbox-7e11acbce9b9a63c28ded055d02301175391e027.zip rockbox-7e11acbce9b9a63c28ded055d02301175391e027.tar.gz rockbox-7e11acbce9b9a63c28ded055d02301175391e027.tar.bz2 rockbox-7e11acbce9b9a63c28ded055d02301175391e027.tar.xz | |
Second part of graphics api rework. Bitmap drawing and text output converted; some code cleanup and more optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6906 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index d2253b4..78bffe0 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -87,12 +87,12 @@ #endif /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 41 +#define PLUGIN_API_VERSION 42 /* 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 41 +#define PLUGIN_MIN_API_VERSION 42 /* plugin return codes */ enum plugin_status { @@ -160,17 +160,21 @@ struct plugin_api { int (*lcd_getstringsize)(const unsigned char *str, int *w, int *h); void (*lcd_drawpixel)(int x, int y); void (*lcd_drawline)(int x1, int y1, int x2, int y2); - void (*lcd_drawrect)(int x, int y, int nx, int ny); - void (*lcd_fillrect)(int x, int y, int nx, int ny); + void (*lcd_hline)(int x1, int x2, int y); + void (*lcd_vline)(int x, int y1, int y2); + void (*lcd_drawrect)(int x, int y, int width, int height); + void (*lcd_fillrect)(int x, int y, int width, int height); + 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 nx, int ny, bool clear); + int width, int height); void (*lcd_putsxy)(int x, int y, const unsigned char *string); void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style); void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string, int style); unsigned char* lcd_framebuffer; - void (*lcd_blit) (const unsigned char* p_data, int x, int y, int width, - int height, int stride); + void (*lcd_blit) (const unsigned char* 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 (*scrollbar)(int x, int y, int width, int height, int items, |