only refresh the screen when the primary palette is changed
This commit is contained in:
parent
a40392e11a
commit
42fb8577a4
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue