X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Freadpng.h;h=924b3415605d7b2171c348af0d206ee834b1fcea;hb=45a3965258121ffdf5b728ec187ebab8011ea331;hp=542a7747b761285a9be4edcb27369e5978b89ffc;hpb=c7a4ff64287b12487c7e9cc13ce3b7d2aa6e1f06;p=libpicofe.git diff --git a/common/readpng.h b/common/readpng.h index 542a774..924b341 100644 --- a/common/readpng.h +++ b/common/readpng.h @@ -2,9 +2,18 @@ typedef enum { READPNG_BG = 1, READPNG_FONT, - READPNG_SELECTOR + READPNG_SELECTOR, + READPNG_24, } readpng_what; -void readpng(void *dest, const char *fname, readpng_what what); +#ifdef __cplusplus +extern "C" { +#endif +int readpng(void *dest, const char *fname, readpng_what what, int w, int h); +int writepng(const char *fname, unsigned short *src, int w, int h); + +#ifdef __cplusplus +} +#endif