--- np2/win9xc/subwind.cpp 2004/03/31 11:59:18 1.1 +++ np2/win9xc/subwind.cpp 2004/04/05 09:45:07 1.2 @@ -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