/* Default the palette to a wonderful pink. */
for (i = 0; i < 256; i++) {
- palette[i] = (struct lbx_colour){0xff, 0x00, 0xff};
+ palette[i] = (struct lbx_colour){0x3f, 0x00, 0x3f};
}
/* Read the external palette, if any. */
file = "stdin";
lbx_img_getinfo(img, &info);
- printf("%s is %ux%u LBX image, %u frame(s)%s%s\n",
+ printf("%s is %hux%hu LBX image, %hhu frame(s)%s%s%s\n",
file, img->width, img->height, img->frames,
info.palettesz ? ", embedded palette" : "",
img->chunk ? ", chunked" : "",