summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/pluginlib_bmp.h
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-10-10 14:24:11 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-10-10 14:24:11 +0000
commit38e88f35f49ad1e3fc58fe67771ecc3412541ae8 (patch)
tree2ba91d597ae7db801e6a38d359b170e8db151ba7 /apps/plugins/lib/pluginlib_bmp.h
parent8ad85ba291efab4056b4a75e3d7a30dc6db16ac4 (diff)
downloadrockbox-38e88f35f49ad1e3fc58fe67771ecc3412541ae8.zip
rockbox-38e88f35f49ad1e3fc58fe67771ecc3412541ae8.tar.gz
rockbox-38e88f35f49ad1e3fc58fe67771ecc3412541ae8.tar.bz2
rockbox-38e88f35f49ad1e3fc58fe67771ecc3412541ae8.tar.xz
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
Diffstat (limited to 'apps/plugins/lib/pluginlib_bmp.h')
-rw-r--r--apps/plugins/lib/pluginlib_bmp.h9
1 files changed, 9 insertions, 0 deletions
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