Mercurial > hg > dmlib
comparison gfxconv.c @ 530:5b37a2e427b7
Greatly simplify and also improve the multicolor/hires/lace bitmap->image
conversion functionality. This breaks the API, however, adjust gfxconv and
view64 accordingly.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 22 Nov 2012 15:28:27 +0200 |
parents | 6f141f760c54 |
children | fbfdc9e4fe2b |
comparison
equal
deleted
inserted
replaced
529:1bce06b5026f | 530:5b37a2e427b7 |
---|---|
180 | 180 |
181 printf("\nAvailable bitmap formats:\n"); | 181 printf("\nAvailable bitmap formats:\n"); |
182 for (i = 0; i < ndmC64ImageFormats; i++) | 182 for (i = 0; i < ndmC64ImageFormats; i++) |
183 { | 183 { |
184 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i]; | 184 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i]; |
185 char buf[64]; | |
185 printf("%3d | %-5s | %-15s | %s\n", | 186 printf("%3d | %-5s | %-15s | %s\n", |
186 i, fmt->extension, | 187 i, fmt->extension, |
187 dmC64ImageTypeNames[fmt->type], | 188 dmC64GetImageTypeString(buf, sizeof(buf), fmt->type), |
188 fmt->name); | 189 fmt->name); |
189 } | 190 } |
190 } | 191 } |
191 | 192 |
192 | 193 |