mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-16 06:18:53 +01:00
add some testing code for Knights and Mechants
This commit is contained in:
parent
8c8a5f9dc2
commit
9717d7b906
@ -30,6 +30,14 @@ HRESULT ddp_SetEntries(IDirectDrawPaletteImpl *This, DWORD dwFlags, DWORD dwStar
|
|||||||
|
|
||||||
for (i = dwStartingEntry, x = 0; i < dwStartingEntry + dwCount; i++, x++)
|
for (i = dwStartingEntry, x = 0; i < dwStartingEntry + dwCount; i++, x++)
|
||||||
{
|
{
|
||||||
|
/* Knights and Merchants video palette bug test code
|
||||||
|
if (i == 0 && lpEntries[0].peBlue == 255 && lpEntries[0].peRed == 255 && lpEntries[0].peGreen == 255 && g_ddraw->width == 640 && g_ddraw->height == 480)
|
||||||
|
{
|
||||||
|
lpEntries[0].peBlue = 0;
|
||||||
|
lpEntries[0].peRed = 0;
|
||||||
|
lpEntries[0].peGreen = 0;
|
||||||
|
}
|
||||||
|
*/
|
||||||
This->data_bgr[i] = (lpEntries[x].peBlue << 16) | (lpEntries[x].peGreen << 8) | lpEntries[x].peRed;
|
This->data_bgr[i] = (lpEntries[x].peBlue << 16) | (lpEntries[x].peGreen << 8) | lpEntries[x].peRed;
|
||||||
|
|
||||||
if (This->data_rgb)
|
if (This->data_rgb)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user