diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-01-26 00:16:06 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-01-26 00:16:06 +0000 |
| commit | 02f1839bfe4766ac72631bd7b76f2fc7f291b89e (patch) | |
| tree | 533f71fe6ded348dc9c5add13dae25dde9a30c57 /apps/plugins/lib/bmp.c | |
| parent | 59914786289033648db9bd5f4222978767e4d665 (diff) | |
| download | rockbox-02f1839bfe4766ac72631bd7b76f2fc7f291b89e.zip rockbox-02f1839bfe4766ac72631bd7b76f2fc7f291b89e.tar.gz rockbox-02f1839bfe4766ac72631bd7b76f2fc7f291b89e.tar.bz2 rockbox-02f1839bfe4766ac72631bd7b76f2fc7f291b89e.tar.xz | |
Accept FS#7218 by Dave Hooper: Bitmap version of the sliding puzzle game.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16168 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/bmp.c')
| -rw-r--r-- | apps/plugins/lib/bmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lib/bmp.c b/apps/plugins/lib/bmp.c index 03bdc73..20adc6d 100644 --- a/apps/plugins/lib/bmp.c +++ b/apps/plugins/lib/bmp.c @@ -24,6 +24,7 @@ #include "lcd.h" #include "system.h" +#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 /** @@ -82,6 +83,7 @@ int save_bmp_file( char* filename, struct bitmap *bm, struct plugin_api* rb ) rb->close( fh ); return 1; } +#endif /** Very simple image scale from src to dst (nearest neighbour). |