Mercurial > hg > dmlib
comparison tools/lib64util.c @ 2244:b26e37e7cbe6
Move function to better place in the file.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 15 Jun 2019 09:16:28 +0300 |
parents | 65a2c2e99c81 |
children | 95f669692b01 |
comparison
equal
deleted
inserted
replaced
2243:79ece1072143 | 2244:b26e37e7cbe6 |
---|---|
98 indent, fmt->format->chWidth, fmt->format->chHeight); | 98 indent, fmt->format->chWidth, fmt->format->chHeight); |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 | 102 |
103 void argShowC64PaletteHelp(FILE *fp) | |
104 { | |
105 fprintf(fp, "\nAvailable C64 palettes:\n"); | |
106 for (int n = 0; n < ndmC64DefaultPalettes; n++) | |
107 { | |
108 DMC64Palette *pal = &dmC64DefaultPalettes[n]; | |
109 fprintf(fp, | |
110 "%-10s | %s\n", | |
111 pal->name, pal->desc); | |
112 } | |
113 fprintf(fp, "\n"); | |
114 } | |
115 | |
116 | |
117 void argShowC64Formats(FILE *fp, const BOOL rw) | 103 void argShowC64Formats(FILE *fp, const BOOL rw) |
118 { | 104 { |
119 fprintf(fp, | 105 fprintf(fp, |
120 "Available C64 bitmap formats (-f <frmt>):\n" | 106 "Available C64 bitmap formats (-f <frmt>):\n" |
121 " frmt %s| Type | Description\n" | 107 " frmt %s| Type | Description\n" |
149 | 135 |
150 fprintf(fp, "%d formats supported.\n", ndmC64ImageFormats); | 136 fprintf(fp, "%d formats supported.\n", ndmC64ImageFormats); |
151 } | 137 } |
152 | 138 |
153 | 139 |
140 void argShowC64PaletteHelp(FILE *fp) | |
141 { | |
142 fprintf(fp, "\nAvailable C64 palettes:\n"); | |
143 for (int n = 0; n < ndmC64DefaultPalettes; n++) | |
144 { | |
145 DMC64Palette *pal = &dmC64DefaultPalettes[n]; | |
146 fprintf(fp, | |
147 "%-10s | %s\n", | |
148 pal->name, pal->desc); | |
149 } | |
150 fprintf(fp, "\n"); | |
151 } | |
152 | |
153 | |
154 BOOL argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile) | 154 BOOL argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile) |
155 { | 155 { |
156 if (strcasecmp(optArg, "help") == 0 || | 156 if (strcasecmp(optArg, "help") == 0 || |
157 strcasecmp(optArg, "list") == 0) | 157 strcasecmp(optArg, "list") == 0) |
158 { | 158 { |