From da56f1647abe114633e226e7454e03d0628c4ef1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 27 May 2009 15:06:20 +0000 Subject: "Improve" broken-looking inverse height calculation. This probably regresses something but someone needs to create a testsuite to determine that. svn path=/trunk/libnsbmp/; revision=7586 --- src/libnsbmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libnsbmp.c') diff --git a/src/libnsbmp.c b/src/libnsbmp.c index fead34e..e6be68a 100644 --- a/src/libnsbmp.c +++ b/src/libnsbmp.c @@ -294,7 +294,6 @@ static bmp_result bmp_analyse_header(bmp_image *bmp, uint8_t *data) { uint32_t i; uint8_t j; int32_t width, height; - uint32_t uheight; uint8_t palette_size; unsigned int flags = 0; @@ -397,7 +396,7 @@ static bmp_result bmp_analyse_header(bmp_image *bmp, uint8_t *data) { return BMP_DATA_ERROR; if (height < 0) { bmp->reversed = true; - uheight = -height; + height = -height; } /* ICOs only support 256*256 resolutions * In the case of the ICO header, the height is actually the added -- cgit v1.2.3