Mercurial > hg > dmlib
diff tools/lib64gfx.h @ 2265:48b48251610a
Refactor how the image "mode/type" is handled. It is still not perfect for
our purposes, but better now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 17 Jun 2019 02:03:35 +0300 |
parents | adb0480f6ebd |
children | ecc17b2e129e |
line wrap: on
line diff
--- a/tools/lib64gfx.h Mon Jun 17 01:44:54 2019 +0300 +++ b/tools/lib64gfx.h Mon Jun 17 02:03:35 2019 +0300 @@ -96,8 +96,9 @@ // Various extra settings (see DMC64Image::extraInfo[]) enum { - D64_EI_CHAR_CASE = 0, - D64_EI_CHAR_MODE, + D64_EI_MODE = 0, // Actual mode, if the format supports several + + D64_EI_CHAR_CASE, D64_EI_CHAR_CUSTOM, D64_EI_FLI_TYPE, @@ -253,7 +254,7 @@ typedef struct _DMC64ImageCommonFormat { - int type, // Type flags, see D64_FMT_* + int mode, // Format mode/type flags, see D64_FMT_* width, height, // Width and height in pixels chWidth, chHeight, // Width and height in charblocks aspectX, aspectY; // Pixel aspectX/Y @@ -275,7 +276,7 @@ size_t addr; // Loading address (0 if no loading address) size_t size; // Size, including loading address. Only used in probing and encoding. - int flags; // DM_FMT_* flags, see libgfx.h + int flags; // DM_FMT_* flags (read/write/broken/etc.), see libgfx.h int (*probe)(const DMGrowBuf *buf, const DMC64ImageFormat *fmt);