comparison gfxconv.c @ 428:983c557f2fbf

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 03 Nov 2012 11:10:59 +0200
parents 11b3adb3bdb1
children e2f8c9cbc17a
comparison
equal deleted inserted replaced
427:0820321203e5 428:983c557f2fbf
165 printf("\nAvailable output formats:\n"); 165 printf("\nAvailable output formats:\n");
166 for (i = 0; i < nconvFormatList; i++) 166 for (i = 0; i < nconvFormatList; i++)
167 { 167 {
168 DMConvFormat *fmt = &convFormatList[i]; 168 DMConvFormat *fmt = &convFormatList[i];
169 printf("%3d | %-5s | %s\n", 169 printf("%3d | %-5s | %s\n",
170 i, fmt->fext, fmt->name); 170 i, fmt->fext ? fmt->fext : "", fmt->name);
171 } 171 }
172 172
173 printf("\nAvailable bitmap formats:\n"); 173 printf("\nAvailable bitmap formats:\n");
174 for (i = 0; i < ndmC64ImageFormats; i++) 174 for (i = 0; i < ndmC64ImageFormats; i++)
175 { 175 {
898 size_t soffs = 0; 898 size_t soffs = 0;
899 899
900 for (plane = 0; plane < pcx->header->nplanes; plane++) 900 for (plane = 0; plane < pcx->header->nplanes; plane++)
901 { 901 {
902 Uint8 data = dmPCXGetByte(row, len, soffs++), 902 Uint8 data = dmPCXGetByte(row, len, soffs++),
903 count = 1; 903 count = 1;
904 904
905 pcx->bufOffs = 0; 905 pcx->bufOffs = 0;
906 906
907 while (soffs < pcx->header->bpl) 907 while (soffs < pcx->header->bpl)
908 { 908 {