Mercurial > hg > dmlib
changeset 1372:b3e561e2209a
Variable name cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 24 Sep 2017 15:20:23 +0300 |
parents | e6b13426b50a |
children | fc5ee5b4b0e9 |
files | tools/lib64gfx.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64gfx.c Sun Sep 24 15:11:49 2017 +0300 +++ b/tools/lib64gfx.c Sun Sep 24 15:20:23 2017 +0300 @@ -239,12 +239,12 @@ static int fmtDecodeDrazPaintPacked(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) { int res; - Uint8 *mem = NULL, *dstEnd; + Uint8 *mem = NULL, *end; - if ((res = dmDecodeGenericRLE(&mem, &dstEnd, buf + 0x0e, buf + len, *(buf + 0x0d))) != DMERR_OK) + if ((res = dmDecodeGenericRLE(&mem, &end, buf + 0x0e, buf + len, *(buf + 0x0d))) != DMERR_OK) goto out; - res = dmC64DecodeGenericBMP(img, mem, dstEnd - mem + 1, fmt); + res = dmC64DecodeGenericBMP(img, mem, end - mem + 1, fmt); out: dmFree(mem); @@ -302,12 +302,12 @@ static int fmtDecodeAmicaPaintPacked(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) { int res; - Uint8 *mem = NULL, *dstEnd; + Uint8 *mem = NULL, *end; - if ((res = dmDecodeGenericRLE(&mem, &dstEnd, buf, buf + len, 0xC2)) != DMERR_OK) + if ((res = dmDecodeGenericRLE(&mem, &end, buf, buf + len, 0xC2)) != DMERR_OK) goto out; - res = dmC64DecodeGenericBMP(img, mem, dstEnd - mem + 1, fmt); + res = dmC64DecodeGenericBMP(img, mem, end - mem + 1, fmt); out: dmFree(mem);