X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fwin32%2Fmain.c;h=eb55e0e08855e336dae1938b5100542c119db1fc;hb=93f9619ed819dee07948416c98ca2f1c70a22666;hp=85d153be7f26622816119c06e798443d9a1a3ba7;hpb=fcdefcf62cb71969b456a6f27688adbeb5890bb9;p=picodrive.git diff --git a/platform/win32/main.c b/platform/win32/main.c index 85d153b..eb55e0e 100644 --- a/platform/win32/main.c +++ b/platform/win32/main.c @@ -107,7 +107,7 @@ static HBITMAP png2hb(const char *fname, int is_480) bmem = calloc(1, is_480 ? 480*240*3 : 320*240*3); if (bmem == NULL) return NULL; - ret = readpng(bmem, fname, is_480 ? READPNG_480_24 : READPNG_320_24); + ret = readpng(bmem, fname, READPNG_24, is_480 ? 480 : 320, 240); if (ret != 0) { free(bmem); return NULL; @@ -131,7 +131,7 @@ static HBITMAP png2hb(const char *fname, int is_480) static void PrepareForROM(void) { unsigned char *rom_data = NULL; - int i, ret, show = PicoAHW & PAHW_PICO; + int i, ret, show = PicoIn.AHW & PAHW_PICO; PicoGetInternal(PI_ROM, (pint_ret_t *) &rom_data); EnableMenuItem(mmain, 2, MF_BYPOSITION|(show ? MF_ENABLED : MF_GRAYED));