comparison tools/gfxconv.c @ 1866:734234e7ca95

Add a comment about the imperfection of ANSI color output.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Jun 2018 17:07:02 +0300
parents 3e830bcb001a
children 15cbf17a8ea6
comparison
equal deleted inserted replaced
1865:3e830bcb001a 1866:734234e7ca95
219 "\n" 219 "\n"
220 ); 220 );
221 } 221 }
222 222
223 223
224 //
225 // Return a "matching" ANSI colour code for given C64 palette index.
226 // As the standard 16 ANSI colours are not exact match and some C64
227 // colours cant be represented, this is an imperfect conversion.
228 //
224 const char *dmC64GetANSIFromC64Color(const int col) 229 const char *dmC64GetANSIFromC64Color(const int col)
225 { 230 {
226 switch (col) 231 switch (col)
227 { 232 {
228 case 0: return "0;30"; // Black 233 case 0: return "0;30"; // Black