Mercurial > hg > dmlib
changeset 1441:260c413304f3
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 10 May 2018 02:43:16 +0300 |
parents | a602488830fc |
children | 3773281491c9 |
files | tools/gfxconv.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gfxconv.c Thu May 10 02:25:42 2018 +0300 +++ b/tools/gfxconv.c Thu May 10 02:43:16 2018 +0300 @@ -1031,13 +1031,12 @@ } -int dmWriteBitmap(const char *filename, const DMC64Image *image, const int iformat, const BOOL enableFixUps) +int dmWriteBitmap(const char *filename, const DMC64Image *image, const DMC64ImageFormat *fmt, const BOOL enableFixUps) { FILE *outFile = NULL; Uint8 *buf = NULL; size_t bufSize; int res = DMERR_OK; - const DMC64ImageFormat *fmt = &dmC64ImageFormats[iformat]; dmMsg(1, "Converting to %s format bitmap.\n", fmt->name); if (image->type != fmt->type && enableFixUps) @@ -1780,7 +1779,7 @@ break; case FFMT_BITMAP: - res = dmWriteBitmap(optOutFilename, inC64Image, optOutSubFormat, TRUE); + res = dmWriteBitmap(optOutFilename, inC64Image, &dmC64ImageFormats[optOutSubFormat], TRUE); break; case FFMT_CHAR: