summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-08-23 08:08:20 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2016-08-23 08:08:20 (GMT)
commit28a6d42203b08d1f31052e998a7c85b5c1d7ea49 (patch)
tree3205495e28b3f641d1bf18529ffe2949d7afb533
parent6dfb16681f4797fd4bc9c73e6c40cafcd367984a (diff)
downloadlibnsbmp-28a6d42203b08d1f31052e998a7c85b5c1d7ea49.tar.gz
libnsbmp-28a6d42203b08d1f31052e998a7c85b5c1d7ea49.tar.bz2
Decode: Don't need to handle row padding in 32bpp decoder.
-rw-r--r--src/libnsbmp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libnsbmp.c b/src/libnsbmp.c
index 6483974..381fcf4 100644
--- a/src/libnsbmp.c
+++ b/src/libnsbmp.c
@@ -512,7 +512,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t **start, int bytes)
uint32_t *scanline;
uint32_t x, y;
uint32_t swidth;
- intptr_t addr;
uint8_t i;
uint32_t word;
@@ -525,7 +524,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t **start, int bytes)
return BMP_INSUFFICIENT_MEMORY;
bottom = top + (uint64_t)swidth * (bmp->height - 1);
end = data + bytes;
- addr = ((intptr_t)data) & 3;
bmp->decoded = true;
/* Determine transparent index */
@@ -574,8 +572,6 @@ static bmp_result bmp_decode_rgb32(bmp_image *bmp, uint8_t **start, int bytes)
scanline[x] = read_uint32((uint8_t *)&scanline[x],0);
}
}
- while (addr != (((intptr_t)data) & 3))
- data++;
}
*start = data;
return BMP_OK;