Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 2369:2dfb448a7ff5
Copy certain DMC64Image::extraInfo fields in dmConvertC64Bitmap() to the destination image.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 07 Jan 2020 17:42:40 +0200 |
parents | 8f015ef431a3 |
children | 82cb32297ed2 |
comparison
equal
deleted
inserted
replaced
2368:4cd67faadbd3 | 2369:2dfb448a7ff5 |
---|---|
1270 dst->bgcolor = src->bgcolor; | 1270 dst->bgcolor = src->bgcolor; |
1271 dst->d022 = src->d022; | 1271 dst->d022 = src->d022; |
1272 dst->d023 = src->d023; | 1272 dst->d023 = src->d023; |
1273 dst->d024 = src->d024; | 1273 dst->d024 = src->d024; |
1274 | 1274 |
1275 // And some extraInfo fields .. | |
1276 dst->extraInfo[D64_EI_CHAR_CASE] = src->extraInfo[D64_EI_CHAR_CASE]; | |
1277 dst->extraInfo[D64_EI_CHAR_CUSTOM] = src->extraInfo[D64_EI_CHAR_CUSTOM]; | |
1278 | |
1275 // Try to do some simple fixups | 1279 // Try to do some simple fixups |
1276 if ((dst->extraInfo[D64_EI_MODE] & D64_FMT_MODE_MASK) == D64_FMT_MC && | 1280 if ((dst->extraInfo[D64_EI_MODE] & D64_FMT_MODE_MASK) == D64_FMT_MC && |
1277 (src->extraInfo[D64_EI_MODE] & D64_FMT_MODE_MASK) == D64_FMT_HIRES) | 1281 (src->extraInfo[D64_EI_MODE] & D64_FMT_MODE_MASK) == D64_FMT_HIRES) |
1278 { | 1282 { |
1279 dmC64MemBlockCopy(&dst->screen[0], &src->screen[0]); | 1283 dmC64MemBlockCopy(&dst->screen[0], &src->screen[0]); |