1
0
Fork 0
forked from len0rd/rockbox

Added font_getstringsize to the plugin api, needed for the reworked grayscale library.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7240 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-07-25 19:56:35 +00:00
parent 210ce6a766
commit 12a4ed383f
2 changed files with 8 additions and 1 deletions

View file

@ -341,6 +341,9 @@ static const struct plugin_api rockbox_api = {
lcd_bitmap_part, lcd_bitmap_part,
lcd_bitmap, lcd_bitmap,
#endif #endif
#ifdef HAVE_LCD_BITMAP
font_getstringsize,
#endif
}; };
int plugin_load(const char* plugin, void* parameter) int plugin_load(const char* plugin, void* parameter)

View file

@ -87,7 +87,7 @@
#endif #endif
/* increase this every time the api struct changes */ /* increase this every time the api struct changes */
#define PLUGIN_API_VERSION 45 #define PLUGIN_API_VERSION 46
/* update this to latest version if a change to the api struct breaks /* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any backwards compatibility (and please take the opportunity to sort in any
@ -419,6 +419,10 @@ struct plugin_api {
void (*lcd_bitmap)(const unsigned char *src, int x, int y, int width, void (*lcd_bitmap)(const unsigned char *src, int x, int y, int width,
int height); int height);
#endif #endif
#ifdef HAVE_LCD_BITMAP
int (*font_getstringsize)(const unsigned char *str, int *w, int *h,
int fontnumber);
#endif
}; };
int plugin_load(const char* plugin, void* parameter); int plugin_load(const char* plugin, void* parameter);