summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2007-11-30 14:52:06 (GMT)
committer James Shaw <jshaw@netsurf-browser.org>2007-11-30 14:52:06 (GMT)
commit0d8738d7c9fa13bc2a425d1be71f338784068752 (patch)
tree39122d83b4ea0b67e8bf8a25a7f00e54f5663f91
parent17c9decf4c7a6c0e5941724520cb0cac011b9937 (diff)
downloadlibrosprite-0d8738d7c9fa13bc2a425d1be71f338784068752.tar.gz
librosprite-0d8738d7c9fa13bc2a425d1be71f338784068752.tar.bz2
Fix import and stray debug printf, add some test cases from Michael
Drake svn path=/import/jshaw/libsprite/; revision=10008
-rw-r--r--trunk/libsprite.c2
-rw-r--r--trunk/libsprite.h1
-rw-r--r--trunk/test-data/32bpp-alpha-testbin0 -> 30356 bytes
-rw-r--r--trunk/test-data/primary-color-16bppbin0 -> 180144 bytes
-rw-r--r--trunk/test-data/smallbin0 -> 224 bytes
5 files changed, 1 insertions, 2 deletions
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 <stdint.h>
+#include <stdio.h>
#include <stdbool.h>
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
--- a/dev/null
+++ b/trunk/test-data/32bpp-alpha-test
Binary files differ
diff --git a/trunk/test-data/primary-color-16bpp b/trunk/test-data/primary-color-16bpp
new file mode 100644
index 0000000..fba7a08
--- a/dev/null
+++ b/trunk/test-data/primary-color-16bpp
Binary files differ
diff --git a/trunk/test-data/small b/trunk/test-data/small
new file mode 100644
index 0000000..5552782
--- a/dev/null
+++ b/trunk/test-data/small
Binary files differ