Fix data race during palette animation with threaded blitters

This commit is contained in:
Jonathan G Rennison
2020-04-11 23:56:13 +01:00
parent c061675001
commit 4c59dfb6b1
10 changed files with 20 additions and 4 deletions

View File

@@ -1238,6 +1238,11 @@ void DoPaletteAnimations()
}
}
void GameLoopPaletteAnimations()
{
if (!_pause_mode && HasBit(_display_opt, DO_FULL_ANIMATION)) DoPaletteAnimations();
}
/**
* Determine a contrasty text colour for a coloured background.
* @param background Background colour.