X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Freadpng.h;h=924b3415605d7b2171c348af0d206ee834b1fcea;hb=23fb16c8be681cff1401452fd7281b513d15775c;hp=7d74fee2d8f6b030640dc2e9ae77c2a60dbd9a7f;hpb=ff63afa1b6f6f291d466a870b8e6d25fe9a74296;p=libpicofe.git diff --git a/common/readpng.h b/common/readpng.h index 7d74fee..924b341 100644 --- a/common/readpng.h +++ b/common/readpng.h @@ -3,8 +3,7 @@ typedef enum READPNG_BG = 1, READPNG_FONT, READPNG_SELECTOR, - READPNG_320_24, - READPNG_480_24 + READPNG_24, } readpng_what; @@ -12,7 +11,8 @@ readpng_what; extern "C" { #endif -int readpng(void *dest, const char *fname, readpng_what what); +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 }