--- xmil/win9xc/scrnmng.cpp 2004/08/08 12:26:19 1.1 +++ xmil/win9xc/scrnmng.cpp 2005/02/04 06:42:12 1.3 @@ -11,6 +11,7 @@ #include "sysmng.h" #include "extclass.h" #include "pccore.h" +#include "iocore.h" #include "scrndraw.h" #include "palettes.h" #include "makescrn.h" @@ -238,7 +239,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 +249,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]); } } @@ -446,7 +447,7 @@ BRESULT scrnmng_create(UINT8 mode) { ddraw.height = height; ddraw.cliping = 0; renewalclientsize(FALSE); - makescrn.palandply = 1; + crtc.e.palandply = 1; return(SUCCESS); scre_err: