Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 1383:3bcf02e5a375
Oops, missed some necessary changes to gfxconv due to lib64gfx changes. Fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 24 Sep 2017 21:10:02 +0300 |
parents | fcaf04cb0830 |
children | 4c7b456d7f0b |
comparison
equal
deleted
inserted
replaced
1382:558776ee9603 | 1383:3bcf02e5a375 |
---|---|
1044 // Try to do some simple fixups | 1044 // Try to do some simple fixups |
1045 if ((fmt->type & D64_FMT_FLI) && (image->type & D64_FMT_FLI) == 0) | 1045 if ((fmt->type & D64_FMT_FLI) && (image->type & D64_FMT_FLI) == 0) |
1046 { | 1046 { |
1047 dmMsg(1, "Upconverting multicolor to FLI.\n"); | 1047 dmMsg(1, "Upconverting multicolor to FLI.\n"); |
1048 int i; | 1048 int i; |
1049 for (i = 1; i < C64_SCR_MAX_BANK; i++) | 1049 for (i = 1; i < image->nbanks; i++) |
1050 { | 1050 { |
1051 memcpy(image->color[i], image->color[0], C64_SCR_COLOR_SIZE); | 1051 memcpy(image->color[i], image->color[0], C64_SCR_COLOR_SIZE); |
1052 memcpy(image->screen[i], image->screen[0], C64_SCR_SCREEN_SIZE); | 1052 memcpy(image->screen[i], image->screen[0], C64_SCR_SCREEN_SIZE); |
1053 } | 1053 } |
1054 } | 1054 } |