Mercurial > hg > dmlib
changeset 907:bc6c338295e5
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 23 Feb 2015 22:42:13 +0200 |
parents | e591ce9b3526 |
children | 03bda6477ad4 |
files | tools/gfxconv.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gfxconv.c Mon Feb 23 22:24:17 2015 +0200 +++ b/tools/gfxconv.c Mon Feb 23 22:42:13 2015 +0200 @@ -1250,20 +1250,20 @@ int outBlockW, outBlockH, bx, by; FILE *outFile = NULL; Uint8 *buf = NULL; - size_t bufSize; + size_t outBufSize; char *outType; switch (outFormat) { case FFMT_CHAR: - bufSize = C64_CHR_SIZE; + outBufSize = C64_CHR_SIZE; outBlockW = image->width / C64_CHR_WIDTH_PX; outBlockH = image->height / C64_CHR_HEIGHT; outType = "char"; break; case FFMT_SPRITE: - bufSize = C64_SPR_SIZE; + outBufSize = C64_SPR_SIZE; outBlockW = image->width / C64_SPR_WIDTH_PX; outBlockH = image->height / C64_SPR_HEIGHT; outType = "sprite"; @@ -1289,10 +1289,10 @@ goto error; } - if ((buf = dmMalloc(bufSize)) == NULL) + if ((buf = dmMalloc(outBufSize)) == NULL) { dmError("Could not allocate %d bytes for conversion buffer.\n", - bufSize); + outBufSize); goto error; } @@ -1318,7 +1318,7 @@ goto error; } - if (!dm_fwrite_str(outFile, buf, bufSize)) + if (!dm_fwrite_str(outFile, buf, outBufSize)) { int err = dmGetErrno(); dmError("Error writing data block %d,%d to '%s', %d: %s\n",