X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/9f64a8229b5299c6815bef7b9f4180f9232ed52e..e58493762dbd70870b7bdc1fd9fc922485c91c2c:/src/image.h diff --git a/src/image.h b/src/image.h index 10bd718..05d3660 100644 --- a/src/image.h +++ b/src/image.h @@ -16,7 +16,7 @@ struct lbx_colour { struct lbx_imginfo { unsigned char loopstart; - int palettesz, looping; + int looping; }; struct lbx_image *lbx_img_open(void *f, const struct lbx_file_ops *fops, @@ -28,10 +28,9 @@ int lbx_img_seek(struct lbx_image *img, unsigned frame); long lbx_img_read_row_header(struct lbx_image *img, unsigned *x, unsigned *y); long lbx_img_read_row_data(struct lbx_image *img, void *buf); +int lbx_img_getpalette(struct lbx_image *img, struct lbx_colour *palette); int lbx_img_loadpalette(void *f, const struct lbx_file_ops *fops, - struct lbx_colour palette[static 256]); -int lbx_img_getpalette(struct lbx_image *img, - struct lbx_colour palette[static 256]); + struct lbx_colour *palette); void lbx_img_getinfo(struct lbx_image *img, struct lbx_imginfo *info);