Mercurial > hg > dmlib
changeset 2124:a17b37872d8e
Simplistic conversion fixups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 27 May 2019 08:27:01 +0300 |
parents | 47ddbedf5b56 |
children | 56d4dc81774b |
files | tools/gfxconv.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gfxconv.c Mon May 27 06:01:32 2019 +0300 +++ b/tools/gfxconv.c Mon May 27 08:27:01 2019 +0300 @@ -1238,6 +1238,18 @@ dst->d024 = src->d024; // Try to do some simple fixups + if ((dst->fmt->type & D64_FMT_MASK) == D64_FMT_MC && + (src->fmt->type & D64_FMT_MASK) == D64_FMT_HIRES) + { + dmC64MemBlockCopy(&dst->screen[0], &src->screen[0]); + } + else + if ((dst->fmt->type & D64_FMT_MASK) == D64_FMT_HIRES && + (src->fmt->type & D64_FMT_MASK) == D64_FMT_MC) + { + // XXX TODO: Handle FLI mc->hires differently? + } + if ((dst->fmt->type & D64_FMT_FLI) && (src->fmt->type & D64_FMT_FLI) == 0) { dmMsg(1, "Upconverting multicolor to FLI.\n");