}
/* Read the external palette, if any. */
- if (palf && lbximg_loadpalette(palf, palette) == -1) {
+ if (palf && lbximg_loadpalette(palf, &lbx_default_fops, palette) != 0) {
errmsg("error reading external palette: %s\n", lbx_strerror());
return -1;
}
printf("%s is %ux%u LBX image, %u frame(s)%s%s\n",
name, info.width, info.height, info.nframes,
info.palettesz ? ", embedded palette" : "",
+ info.chunk ? ", chunked" : "",
info.looping ? ", loops" : "");
}