summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSean Fox <dyntryx@gmail.com>2008-06-27 08:36:30 +0000
committerSean Fox <dyntryx@gmail.com>2008-06-27 08:36:30 +0000
commita6f4c9f7cc7e767bc18827d2b64baa000140a435 (patch)
treea7d7689887e4e1eabaa61d2a55d68d502318bac8 /examples
parent9fd4bfa74de9b617949768ab62511f943010d80e (diff)
downloadlibnsbmp-a6f4c9f7cc7e767bc18827d2b64baa000140a435.tar.gz
libnsbmp-a6f4c9f7cc7e767bc18827d2b64baa000140a435.tar.bz2
Correct ico support and added documentation; corrected handling of rgb16 encoding; bmp_data/buffer_size are now passed to bmp_analyse; several bmp functions are now defined as static
svn path=/branches/dynis/libnsbmp/; revision=4465
Diffstat (limited to 'examples')
-rw-r--r--examples/decode_bmp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/decode_bmp.c b/examples/decode_bmp.c
index 7ee2f8b..d838f79 100644
--- a/examples/decode_bmp.c
+++ b/examples/decode_bmp.c
@@ -63,12 +63,8 @@ int main(int argc, char *argv[])
/* load file into memory */
unsigned char *data = load_file(argv[1], &size);
- /* set our source data */
- bmp.bmp_data = data;
- bmp.buffer_size = size;
-
/* analyse the BMP */
- code = bmp_analyse(&bmp);
+ code = bmp_analyse(&bmp, size, data);
if (code != BMP_OK) {
warning("bmp_analyse", code);
exit(1);