--- np2/win9xc/subwind.cpp 2004/03/31 11:59:18 1.1 +++ np2/win9xc/subwind.cpp 2005/02/07 14:46:15 1.5 @@ -94,7 +94,7 @@ static HBITMAP allocbmp(int width, int h if (ret != NULL) { ZeroMemory(image, width * height * 4); if (vram) { - vram->ptr = (BYTE *)image; + vram->ptr = (UINT8 *)image; vram->width = width; vram->height = height; vram->xalign = 4; @@ -130,35 +130,31 @@ static const PFTBL mdbgini[] = { {"WindposX", PFTYPE_SINT32, &mdbgcfg.posx, 0}, {"WindposY", PFTYPE_SINT32, &mdbgcfg.posy, 0}}; -static const UINT32 mdwinpal[MEMDBG32_PALS] = - {0x00333333, 0x00000000, - 0x00ffaa00, 0x00ff0000, 0x00118811, 0x0000ff00, 0xffffffff}; -static UINT32 mdwin_getpal32(CMNPALFN *self, UINT num) { +static void mdpalcnv(CMNPAL *dst, const RGB32 *src, UINT pals, UINT bpp) { - if (num < MEMDBG32_PALS) { - return(mdwinpal[num] & 0xffffff); + UINT i; + + switch(bpp) { + case 32: + for (i=0; i