From 38e88f35f49ad1e3fc58fe67771ecc3412541ae8 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Sun, 10 Oct 2010 14:24:11 +0000 Subject: use different function to resize bitmap for greylib. it is confusing that same function expects different data type (fb_data or unsigned char) depending on the target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28233 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/pluginlib_bmp.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/plugins/lib/pluginlib_bmp.h') diff --git a/apps/plugins/lib/pluginlib_bmp.h b/apps/plugins/lib/pluginlib_bmp.h index 17844a8..be0cfd9 100644 --- a/apps/plugins/lib/pluginlib_bmp.h +++ b/apps/plugins/lib/pluginlib_bmp.h @@ -37,10 +37,19 @@ int save_bmp_file( char* filename, struct bitmap *bm ); */ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst); +#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) +/** + Same as simple_resize_bitmap except this is for use with greylib. +*/ +void grey_resize_bitmap(struct bitmap *src, struct bitmap *dst); +#endif + +#ifdef HAVE_LCD_COLOR /** Advanced image scale from src to dst (bilinear) based on imlib2. Source and destination dimensions are read from the struct bitmap. */ void smooth_resize_bitmap(struct bitmap *src, struct bitmap *dst); +#endif #endif -- cgit v1.1