--- np2/win9x/subwind.cpp 2004/03/25 10:41:13 1.2 +++ np2/win9x/subwind.cpp 2004/04/07 13:15:40 1.6 @@ -416,6 +416,8 @@ typedef struct { HWND hwnd; WINLOCEX wlex; DD2HDL dd2hdl; + int width; + int height; } SKBDWIN; typedef struct { @@ -435,46 +437,63 @@ static const INITBL np2skini[] = { {"WindposY", INITYPE_SINT32, &skbdcfg.posy, 0}, {"windtype", INITYPE_BOOL, &skbdcfg.type, 0}}; -static void skpalcnv(CMNPAL *dst, RGB32 *src, UINT pals, UINT bpp) { +static void skpalcnv(CMNPAL *dst, const RGB32 *src, UINT pals, UINT bpp) { UINT i; switch(bpp) { +#if defined(SUPPORT_8BPP) + case 8: + break; +#endif +#if defined(SUPPORT_16BPP) case 16: for (i=0; i