--- xmil/win9xc/scrnmng.cpp 2004/08/08 12:26:19 1.1 +++ xmil/win9xc/scrnmng.cpp 2004/08/17 12:40:00 1.2 @@ -238,7 +238,7 @@ static void paletteinit(void) { hdc = GetDC(hWndMain); GetSystemPaletteEntries(hdc, 0, 256, ddraw.pal); ReleaseDC(hWndMain, hdc); - for (i=0; iCreatePalette(DDPCAPS_8BIT, ddraw.pal, &ddraw.palette, 0); @@ -248,15 +248,15 @@ static void paletteinit(void) { static void paletteset(void) { - int i; + UINT i; - if ((ddraw.palette != NULL) && (xm_palettes)) { - for (i=0; iSetEntries(0, START_PAL, xm_palettes, + ddraw.palette->SetEntries(0, START_PAL, xmil_palettes, &ddraw.pal[START_PAL]); } }