mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
use return value from GetPaletteEntries
This commit is contained in:
parent
a5a4204f41
commit
60735fc0d5
@ -1394,9 +1394,9 @@ HPALETTE WINAPI fake_SelectPalette(HDC hdc, HPALETTE hPal, BOOL bForceBkgd)
|
|||||||
TRACE("%s [%p]\n", __FUNCTION__, _ReturnAddress());
|
TRACE("%s [%p]\n", __FUNCTION__, _ReturnAddress());
|
||||||
|
|
||||||
PALETTEENTRY pal[256];
|
PALETTEENTRY pal[256];
|
||||||
GetPaletteEntries(hPal, 0, 256, pal);
|
UINT count = GetPaletteEntries(hPal, 0, 256, pal);
|
||||||
|
|
||||||
ddp_SetEntries(g_ddraw.primary->palette, 0, 0, 256, pal);
|
ddp_SetEntries(g_ddraw.primary->palette, 0, 0, count, pal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user