1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

Start colors from zero index in GDI, dunno how it worked before

This commit is contained in:
Toni Spets 2011-07-05 21:46:12 +03:00
parent c69f258e42
commit bfb161f27c

View File

@ -62,7 +62,7 @@ DWORD WINAPI render_soft_main(void)
{
if (ddraw->primary->palette && ddraw->primary->palette->data_rgb == NULL)
{
ddraw->primary->palette->data_rgb = &bmi->bmiColors[1];
ddraw->primary->palette->data_rgb = &bmi->bmiColors[0];
}
SetDIBits(memDC, surface, 0, ddraw->height, ddraw->primary->surface, bmi, DIB_RGB_COLORS);