Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 1759:027fb7313d85
Add a format flag for marking formats that have broken/incomplete support and use it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 11 Jun 2018 18:09:00 +0300 |
parents | 5e928618fdc8 |
children | 4e4d54135baf |
comparison
equal
deleted
inserted
replaced
1758:8014e4cbebfe | 1759:027fb7313d85 |
---|---|
170 | 170 |
171 for (int i = 0; i < ndmC64ImageFormats; i++) | 171 for (int i = 0; i < ndmC64ImageFormats; i++) |
172 { | 172 { |
173 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i]; | 173 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i]; |
174 char buf[64]; | 174 char buf[64]; |
175 printf("%-6s| %c%c | %-15s | %s\n", | 175 printf("%-6s| %c%c | %-15s | %s%s\n", |
176 fmt->fext, | 176 fmt->fext, |
177 (fmt->flags & DM_FMT_RD) ? 'R' : ' ', | 177 (fmt->flags & DM_FMT_RD) ? 'R' : ' ', |
178 (fmt->flags & DM_FMT_WR) ? 'W' : ' ', | 178 (fmt->flags & DM_FMT_WR) ? 'W' : ' ', |
179 dmC64GetImageTypeString(buf, sizeof(buf), fmt->type, FALSE), | 179 dmC64GetImageTypeString(buf, sizeof(buf), fmt->type, FALSE), |
180 fmt->name); | 180 fmt->name, |
181 fmt->flags & DM_FMT_BROKEN ? " [BROKEN]" : ""); | |
181 } | 182 } |
182 printf("%d formats supported.\n", ndmC64ImageFormats); | 183 printf("%d formats supported.\n", ndmC64ImageFormats); |
183 } | 184 } |
184 | 185 |
185 | 186 |