]> git.draconx.ca Git - liblbx.git/blobdiff - src/lbximg.c
liblbx: Add support for "chunked" images.
[liblbx.git] / src / lbximg.c
index 1cf765d3ad699ea2ac86b36b2c4c35037203379c..933e1e079abef22c84b709f12539448ecc0a50ae 100644 (file)
@@ -288,7 +288,7 @@ static int loadpalette(LBX_IMG *img, struct lbx_imginfo *info,
        }
 
        /* 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;
        }
@@ -468,6 +468,7 @@ int main(int argc, char **argv)
                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" : "");
        }