Mercurial > hg > dmlib
diff tools/lib64util.c @ 2314:87533af8db64
Add format flag for formats that use sprite layer.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 10 Jul 2019 11:23:34 +0300 |
parents | 48b48251610a |
children | 82cb32297ed2 |
line wrap: on
line diff
--- a/tools/lib64util.c Tue Jul 09 11:52:15 2019 +0300 +++ b/tools/lib64util.c Wed Jul 10 11:23:34 2019 +0300 @@ -12,7 +12,7 @@ char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng) { static const char *fmtModesShort[] = { "*", "HiR", "MC", "ECM" }; - static const char *fmtModesLong[] = { "*", "HiRes", "MultiColor", "Extended Color Mode" }; + static const char *fmtModesLong[] = { "*", "Hires", "Multi-color", "Extended Color Mode" }; const char *fmtStr; size_t nfmt = type & D64_FMT_MODE_MASK; @@ -22,11 +22,12 @@ fmtStr = lng ? "ERROR" : "ERR"; snprintf(buf, len, - "%s %s%s%s", + "%s %s%s%s%s", fmtStr, - (type & D64_FMT_ILACE) ? (lng ? "Interlaced " : "ILace ") : "", + (type & D64_FMT_ILACE) ? (lng ? "interlaced " : "ILace ") : "", (type & D64_FMT_FLI) ? "FLI " : "", - (type & D64_FMT_CHAR) ? "CHAR" : "" + (type & D64_FMT_CHAR) ? (lng ? "char-mode" : "CHAR") : "", + (type & D64_FMT_SPRITES) ? (lng ? "+ sprite-layer" : "SPR") : "" ); return buf;