Mercurial > hg > dmlib
diff tools/lib64gfx.c @ 2180:33cf1b330b7b
s/D64_FMT_MASK/D64_FMT_MODE_MASK/g
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 12 Jun 2019 18:22:04 +0300 |
parents | 8d53da5bf067 |
children | 71880ce885dd |
line wrap: on
line diff
--- a/tools/lib64gfx.c Wed Jun 12 17:55:01 2019 +0300 +++ b/tools/lib64gfx.c Wed Jun 12 18:22:04 2019 +0300 @@ -90,7 +90,7 @@ static const char *fmtModesShort[] = { "*", "HiR", "MC", "ECM" }; static const char *fmtModesLong[] = { "*", "HiRes", "MultiColor", "Extended Color Mode" }; const char *fmtStr; - size_t nfmt = type & D64_FMT_MASK; + size_t nfmt = type & D64_FMT_MODE_MASK; if (nfmt < sizeof(fmtModesShort) / sizeof(fmtModesShort[0])) fmtStr = lng ? fmtModesLong[nfmt] : fmtModesShort[nfmt]; @@ -1454,7 +1454,7 @@ if (src->fmt->type & D64_FMT_CHAR) getPixel = fmtGetGenericCharPixel; else - switch (src->fmt->type & D64_FMT_MASK) + switch (src->fmt->type & D64_FMT_MODE_MASK) { case D64_FMT_MC : getPixel = fmtGetGenericMCPixel; break; case D64_FMT_HIRES : getPixel = fmtGetGenericSCPixel; break;