From 3646c313679c4bd16c9eec98c2e35c7a7bf5c961 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 8 Jan 2008 01:22:14 +0000 Subject: Add the viewport functions to the screens API, including a new getfont() function to return the font used by the current viewport. A change to the screens API makes the plugin API incompatible, so we bump version and sort. Also commit the test_viewports plugin (not built by default). This is some more of FS#8385. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16022 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index f782b7a20c..849c10bb89 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -119,12 +119,12 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 94 +#define PLUGIN_API_VERSION 95 /* 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 88 +#define PLUGIN_MIN_API_VERSION 95 /* plugin return codes */ enum plugin_status { @@ -267,6 +267,10 @@ struct plugin_api { void (*lcd_remote_bitmap)(const fb_remote_data *src, int x, int y, int width, int height); #endif +#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && !defined(SIMULATOR) + void (*lcd_grey_phase_blit)(const struct grey_data *data, int bx, int by, + int bwidth, int bheight, int stride); +#endif #if defined(HAVE_LCD_COLOR) void (*lcd_yuv_blit)(unsigned char * const src[3], int src_x, int src_y, int stride, @@ -718,11 +722,6 @@ struct plugin_api { const char * (*sound_unit)(int setting); int (*sound_val2phys)(int setting, int value); #endif /* CONFIG_CODEC == SWCODEC */ - -#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && !defined(SIMULATOR) - void (*lcd_grey_phase_blit)(const struct grey_data *data, int bx, int by, - int bwidth, int bheight, int stride); -#endif }; /* plugin header */ -- cgit v1.2.3