X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Fcommon%2Freadpng.h;h=924b3415605d7b2171c348af0d206ee834b1fcea;hb=4187c0ea575c33fe8c636ac6aa256ec634369478;hp=542a7747b761285a9be4edcb27369e5978b89ffc;hpb=e5f426aa2e86d56357b8af2795e73cc0c9b17e8f;p=picodrive.git diff --git a/platform/common/readpng.h b/platform/common/readpng.h index 542a774..924b341 100644 --- a/platform/common/readpng.h +++ b/platform/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