From a6f4c9f7cc7e767bc18827d2b64baa000140a435 Mon Sep 17 00:00:00 2001 From: Sean Fox Date: Fri, 27 Jun 2008 08:36:30 +0000 Subject: 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 --- examples/decode_bmp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'examples/decode_bmp.c') 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); -- cgit v1.2.3