1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +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->primary->palette == This && ddraw->render.run)
if(ddraw->primary && ddraw->render.run)
{ {
InterlockedExchange(&ddraw->render.paletteUpdated, TRUE); InterlockedExchange(&ddraw->render.paletteUpdated, TRUE);
ReleaseSemaphore(ddraw->render.sem, 1, NULL); ReleaseSemaphore(ddraw->render.sem, 1, NULL);