changeset 2030:2b961e6b35e5

Update documentation etc.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 Nov 2018 11:45:13 +0200
parents 5ecd51009072
children 4109967ef832
files README.txt tools/gfxconv.c
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
 
--- 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",