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

only refresh the screen when the primary palette is changed

This commit is contained in:
FunkyFr3sh 2018-07-05 19:32:33 +02:00
parent a40392e11a
commit 42fb8577a4

View File

@ -59,8 +59,7 @@ HRESULT __stdcall ddraw_palette_SetEntries(IDirectDrawPaletteImpl *This, DWORD d
}
}
/* FIXME: only refresh the screen when the primary palette is changed */
if(ddraw->primary && ddraw->render.run)
if(ddraw->primary && ddraw->primary->palette == This && ddraw->render.run)
{
InterlockedExchange(&ddraw->render.paletteUpdated, TRUE);
ReleaseSemaphore(ddraw->render.sem, 1, NULL);