X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Freadpng.h;h=ce5d6351e29141b6626075ec8f07be6b29606294;hb=d2fd8a7a67a0f7a914931add447b469d9a4dd96b;hp=542a7747b761285a9be4edcb27369e5978b89ffc;hpb=e5f426aa2e86d56357b8af2795e73cc0c9b17e8f;p=picodrive.git diff --git a/platform/common/readpng.h b/platform/common/readpng.h index 542a774..ce5d635 100644 --- a/platform/common/readpng.h +++ b/platform/common/readpng.h @@ -2,9 +2,17 @@ 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); + +#ifdef __cplusplus +} +#endif