diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2022-03-24 12:00:21 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2022-03-24 12:00:21 +0000 |
commit | 515f8e111ee6b12275fec93b4a05410868e6ae60 (patch) | |
tree | 7e1b85d33e41a0d21e4912442e4d63c7049b0975 /test/decode_ico.c | |
parent | df9cc4e3d70afe522ca0a4e94d7b892bb9f65393 (diff) | |
download | libnsbmp-515f8e111ee6b12275fec93b4a05410868e6ae60.tar.gz |
Diffstat (limited to 'test/decode_ico.c')
-rw-r--r-- | test/decode_ico.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/decode_ico.c b/test/decode_ico.c index 5dbc7a5..94db57e 100644 --- a/test/decode_ico.c +++ b/test/decode_ico.c @@ -24,7 +24,7 @@ /* Currently the library returns the data in RGBA format, * so there are 4 bytes per pixel */ -#define BYTES_PER_PIXEL 4 +#define BYTES_PER_PIXEL sizeof(uint32_t) /* White with alpha masking. */ #define TRANSPARENT_COLOR 0xffffffff @@ -43,13 +43,6 @@ static unsigned char *bitmap_get_buffer(void *bitmap) } -static size_t bitmap_get_bpp(void *bitmap) -{ - (void) bitmap; /* unused */ - return BYTES_PER_PIXEL; -} - - static void bitmap_destroy(void *bitmap) { assert(bitmap); @@ -175,7 +168,6 @@ int main(int argc, char *argv[]) bitmap_create, bitmap_destroy, bitmap_get_buffer, - bitmap_get_bpp }; uint16_t width, height; ico_collection ico; |