summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/bmp.h
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-08 08:32:05 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-08 08:32:05 +0000
commit32d9752dcc73fd1aaa81d484c3d426ca7856b146 (patch)
tree351499c76bab38095468ea1ce2d9d64e4aabdb05 /apps/plugins/lib/bmp.h
parentc7e83bd017e00694aecc720cf4f74ee4440eb17c (diff)
downloadrockbox-32d9752dcc73fd1aaa81d484c3d426ca7856b146.zip
rockbox-32d9752dcc73fd1aaa81d484c3d426ca7856b146.tar.gz
rockbox-32d9752dcc73fd1aaa81d484c3d426ca7856b146.tar.bz2
rockbox-32d9752dcc73fd1aaa81d484c3d426ca7856b146.tar.xz
remove unneeded LCD_DEPTH test in lib/resize.h, add some comments explaining the core-file imports
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19715 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/bmp.h')
-rw-r--r--apps/plugins/lib/bmp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/lib/bmp.h b/apps/plugins/lib/bmp.h
index 379a889..0e7a0a4 100644
--- a/apps/plugins/lib/bmp.h
+++ b/apps/plugins/lib/bmp.h
@@ -24,7 +24,7 @@
#include "lcd.h"
#include "plugin.h"
-#if LCD_DEPTH > 1
+#if LCD_DEPTH > 1 /* save is only available for color, resize for >1bpp */
#ifdef HAVE_LCD_COLOR
/**
* Save bitmap to file
@@ -45,6 +45,11 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst);
void smooth_resize_bitmap(struct bitmap *src, struct bitmap *dst);
#else
+/*
+ BMP loader is built with scaling support in pluginlib on 1bpp targets, as
+ these do not provide scaling support in the core BMP loader. bmp_init is
+ needed to copy the plugin API pointer for the pluginlib loader's use.
+*/
void bmp_init(const struct plugin_api *api);
#endif