# HG changeset patch # User Matti Hamalainen # Date 1541670313 -7200 # Node ID 2b961e6b35e5890b8dceaaefc83d5226957a0e12 # Parent 5ecd5100907227063543fc3f87306f03c84c70a9 Update documentation etc. diff -r 5ecd51009072 -r 2b961e6b35e5 README.txt --- a/README.txt Thu Nov 08 11:42:23 2018 +0200 +++ b/README.txt Thu Nov 08 11:45:13 2018 +0200 @@ -264,13 +264,13 @@ Single color C64 char font to PNG image conversion: -$ gfxconv chars1.fnt -i chr:sc -s 2 -S 4 -c 255,1 -n 256 -o chars1.png +$ gfxconv chars1.fnt -i chr:sc -s 2 -S 4 -m 255,1 -n 256 -o chars1.png - Input file is "chars1.fnt" - "-i chr:sc" specifies that input is interpreted as single color chars. - "-s 2" skips first two bytes of the input file (loading address) - "-S 4" scales output image to be 5 times larger - - "-c 255,1" defines background color (bit value 0) to be transparent + - "-m 255,1" defines background color (bit value 0) to be transparent (255, only works for PNG) and foreground to be C64 color 1 (white) - "-n 256" specifies that up to 256 items (characters) worth of data from input will be processed. @@ -284,7 +284,7 @@ Extract sprites from a C64 memory dump, convert to PNG: $ gfxconv bub_dump.raw -i spr:mc -s 0x5800 -n 20 -f png -o bub \ - -q -S 3 -c 255:2:5:1 + -q -S 3 -m 255:2:5:1 - Input file "bub_dump.raw" is a raw memory dump of Bubble Bobble extracted via VICE in game running mode. @@ -296,7 +296,7 @@ does not specify a filename extension. - "-o bub" sets filename prefix to "bub" - "-q" selects sequential output (separate files) - - "-c 255:2:5:1" sets the multicolor color mappings + - "-m 255:2:5:1" sets the multicolor color mappings (255 is the transparency color again) diff -r 5ecd51009072 -r 2b961e6b35e5 tools/gfxconv.c --- a/tools/gfxconv.c Thu Nov 08 11:42:23 2018 +0200 +++ b/tools/gfxconv.c Thu Nov 08 11:45:13 2018 +0200 @@ -691,10 +691,10 @@ { int index, ncolors; if (!dmParseMapOptionString(optArg, optColorMap, - &ncolors, C64_NCOLORS, FALSE, "color table option")) + &ncolors, C64_NCOLORS, FALSE, "color index option")) return FALSE; - dmMsg(1, "Set color mapping: "); + dmMsg(1, "Set color index mapping: "); for (index = 0; index < ncolors; index++) { dmPrint(1, "[%d:%d]%s",