diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-08 08:32:05 +0000 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-08 08:32:05 +0000 |
| commit | 32d9752dcc73fd1aaa81d484c3d426ca7856b146 (patch) | |
| tree | 351499c76bab38095468ea1ce2d9d64e4aabdb05 /apps/plugins/lib/bmp.c | |
| parent | c7e83bd017e00694aecc720cf4f74ee4440eb17c (diff) | |
| download | rockbox-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.c')
| -rw-r--r-- | apps/plugins/lib/bmp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/lib/bmp.c b/apps/plugins/lib/bmp.c index b3e0e2b..1cb24d3 100644 --- a/apps/plugins/lib/bmp.c +++ b/apps/plugins/lib/bmp.c @@ -27,7 +27,7 @@ #include "lcd.h" #include "system.h" -#if LCD_DEPTH > 1 +#if LCD_DEPTH > 1 /* save is only available for color, resize for >1bpp */ #ifdef HAVE_LCD_COLOR #define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff #define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff @@ -122,13 +122,15 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst) } } -#else +#else /* LCD_DEPTH == 1 */ #include "wrappers.h" static const struct plugin_api *rb; +/* import the core bmp loader */ #include "../../recorder/bmp.c" +/* initialize rb for use by the bmp loader */ void bmp_init(const struct plugin_api *api) { rb = api; |