- moved the mSceneClearColor variable to main DFrameBuffer class.

This commit is contained in:
Christoph Oelckers 2018-10-29 09:34:30 +01:00
commit 90982285ac
6 changed files with 14 additions and 16 deletions

View file

@ -324,6 +324,14 @@ void DFrameBuffer::GetFlash(PalEntry &rgb, int &amount)
amount = Flash.a;
}
void DFrameBuffer::SetClearColor(int color)
{
PalEntry pe = GPalette.BaseColors[color];
mSceneClearColor[0] = pe.r / 255.f;
mSceneClearColor[1] = pe.g / 255.f;
mSceneClearColor[2] = pe.b / 255.f;
mSceneClearColor[3] = 1.f;
}
//==========================================================================
//