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:
parent
a40392e11a
commit
42fb8577a4
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user