comparison lib64gfx.h @ 516:6f141f760c54

Constify.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 17:24:08 +0200
parents a896c1153e4e
children 5b37a2e427b7
comparison
equal deleted inserted replaced
515:a896c1153e4e 516:6f141f760c54
164 } DMC64ImageFormat; 164 } DMC64ImageFormat;
165 165
166 166
167 extern const size_t dmC64DefaultSizes[DT_LAST]; 167 extern const size_t dmC64DefaultSizes[DT_LAST];
168 extern DMColor dmC64Palette[C64_NCOLORS]; 168 extern DMColor dmC64Palette[C64_NCOLORS];
169 extern DMC64ImageFormat dmC64ImageFormats[]; 169 extern const DMC64ImageFormat dmC64ImageFormats[];
170 extern const int ndmC64ImageFormats; 170 extern const int ndmC64ImageFormats;
171 extern const char * dmC64ImageTypeNames[]; 171 extern const char * dmC64ImageTypeNames[];
172 172
173 173
174 int dmC64ConvertCSData(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors); 174 int dmC64ConvertCSData(DMImage *img, int xoffs, int yoffs, const Uint8 *inBuf, int width, int height, BOOL multicolor, int *colors);
175 int dmC64ProbeGeneric(const Uint8 *buf, const size_t len, DMC64ImageFormat **fmt); 175 int dmC64ProbeGeneric(const Uint8 *buf, const size_t len, const DMC64ImageFormat **fmt);
176 int dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt); 176 int dmC64DecodeGenericBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt);
177 int dmC64ConvertGenericBMP2Image(DMImage *screen, const DMC64Image *img); 177 int dmC64ConvertGenericBMP2Image(DMImage *screen, const DMC64Image *img);
178 int dmC64DecodeBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const size_t probeOffs, const size_t loadOffs, DMC64ImageFormat **fmt, DMC64ImageFormat *forced); 178 int dmC64DecodeBMP(DMC64Image *img, const Uint8 *buf, const size_t len, const size_t probeOffs, const size_t loadOffs, const DMC64ImageFormat **fmt, const DMC64ImageFormat *forced);
179 179
180 int dmReadDataFile(FILE *inFile, const char *filename, Uint8 **buf, size_t *size); 180 int dmReadDataFile(FILE *inFile, const char *filename, Uint8 **buf, size_t *size);
181 181
182 182
183 #ifdef __cplusplus 183 #ifdef __cplusplus