summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-27 15:06:20 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-27 15:06:20 +0000
commitda56f1647abe114633e226e7454e03d0628c4ef1 (patch)
tree18a2734077b88ec108d097786e65ea8c795938cb
parent12473b67c2fc5982a1264f200b018db28e9b4001 (diff)
downloadlibnsbmp-da56f1647abe114633e226e7454e03d0628c4ef1.tar.gz
libnsbmp-da56f1647abe114633e226e7454e03d0628c4ef1.tar.bz2
"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
-rw-r--r--src/libnsbmp.c3
1 files changed, 1 insertions, 2 deletions
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