From 0d8738d7c9fa13bc2a425d1be71f338784068752 Mon Sep 17 00:00:00 2001 From: James Shaw Date: Fri, 30 Nov 2007 14:52:06 +0000 Subject: Fix import and stray debug printf, add some test cases from Michael Drake svn path=/import/jshaw/libsprite/; revision=10008 --- trunk/libsprite.c | 2 -- trunk/libsprite.h | 1 + trunk/test-data/32bpp-alpha-test | Bin 0 -> 30356 bytes trunk/test-data/primary-color-16bpp | Bin 0 -> 180144 bytes trunk/test-data/small | Bin 0 -> 224 bytes 5 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 trunk/test-data/32bpp-alpha-test create mode 100644 trunk/test-data/primary-color-16bpp create mode 100644 trunk/test-data/small diff --git a/trunk/libsprite.c b/trunk/libsprite.c index 98401f2..1a9d1ea 100644 --- a/trunk/libsprite.c +++ b/trunk/libsprite.c @@ -521,8 +521,6 @@ static void sprite_load_low_color(uint8_t* image_in, uint8_t* mask, struct rospr currentword = BTUINT((image_in + current_byte_index)); current_byte_index += 4; } - - printf("\n"); } if (sprite->has_mask) free(mask_state); diff --git a/trunk/libsprite.h b/trunk/libsprite.h index 6c5b055..9d5091a 100644 --- a/trunk/libsprite.h +++ b/trunk/libsprite.h @@ -2,6 +2,7 @@ #define ROSPRITE_H #include +#include #include typedef enum { rosprite_rgb, rosprite_cmyk } rosprite_color_model; diff --git a/trunk/test-data/32bpp-alpha-test b/trunk/test-data/32bpp-alpha-test new file mode 100644 index 0000000..92ebd63 Binary files /dev/null and b/trunk/test-data/32bpp-alpha-test differ diff --git a/trunk/test-data/primary-color-16bpp b/trunk/test-data/primary-color-16bpp new file mode 100644 index 0000000..fba7a08 Binary files /dev/null and b/trunk/test-data/primary-color-16bpp differ diff --git a/trunk/test-data/small b/trunk/test-data/small new file mode 100644 index 0000000..5552782 Binary files /dev/null and b/trunk/test-data/small differ -- cgit v1.2.3