diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-07-25 19:56:35 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-07-25 19:56:35 +0000 |
commit | 12a4ed383f21b65a5a244f47fe1bc9f13d4f63bb (patch) | |
tree | 7770fa6256d205676df61f86c709145cbdf73405 | |
parent | 210ce6a766325508442fd81094a0aa57057294a2 (diff) | |
download | rockbox-12a4ed383f21b65a5a244f47fe1bc9f13d4f63bb.tar.gz rockbox-12a4ed383f21b65a5a244f47fe1bc9f13d4f63bb.zip |
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
-rw-r--r-- | apps/plugin.c | 3 | ||||
-rw-r--r-- | apps/plugin.h | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 6df7621203..7bfa0e2a0f 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -341,6 +341,9 @@ static const struct plugin_api rockbox_api = { | |||
341 | lcd_bitmap_part, | 341 | lcd_bitmap_part, |
342 | lcd_bitmap, | 342 | lcd_bitmap, |
343 | #endif | 343 | #endif |
344 | #ifdef HAVE_LCD_BITMAP | ||
345 | font_getstringsize, | ||
346 | #endif | ||
344 | }; | 347 | }; |
345 | 348 | ||
346 | int plugin_load(const char* plugin, void* parameter) | 349 | int plugin_load(const char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index 801c49e0f1..f504bacf22 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -87,7 +87,7 @@ | |||
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | /* increase this every time the api struct changes */ | 89 | /* increase this every time the api struct changes */ |
90 | #define PLUGIN_API_VERSION 45 | 90 | #define PLUGIN_API_VERSION 46 |
91 | 91 | ||
92 | /* update this to latest version if a change to the api struct breaks | 92 | /* update this to latest version if a change to the api struct breaks |
93 | backwards compatibility (and please take the opportunity to sort in any | 93 | backwards compatibility (and please take the opportunity to sort in any |
@@ -419,6 +419,10 @@ struct plugin_api { | |||
419 | void (*lcd_bitmap)(const unsigned char *src, int x, int y, int width, | 419 | void (*lcd_bitmap)(const unsigned char *src, int x, int y, int width, |
420 | int height); | 420 | int height); |
421 | #endif | 421 | #endif |
422 | #ifdef HAVE_LCD_BITMAP | ||
423 | int (*font_getstringsize)(const unsigned char *str, int *w, int *h, | ||
424 | int fontnumber); | ||
425 | #endif | ||
422 | }; | 426 | }; |
423 | 427 | ||
424 | int plugin_load(const char* plugin, void* parameter); | 428 | int plugin_load(const char* plugin, void* parameter); |