Adjust gameplay colors, so that the screen can be faded / in out, by changing the SCBS

This commit is contained in:
dwsJason 2018-09-02 11:56:49 -04:00
parent f6ea147ed4
commit f8fca3627c
2 changed files with 18 additions and 0 deletions

View File

@ -111,6 +111,24 @@ void savePixelsGSc1(MYBMP *pBitmap, const char* pFilename)
green>>=4;
blue>>=4;
{
// Generate a ramp of colors, so SCB = 0, is black
// SCB = 15 is faded in
float scale = palnum / 15.0f;
if (palnum < 15)
{
float fr = scale * red;
float fg = scale * green;
float fb = scale * blue;
red = fr;
green = fg;
blue = fb;
}
}
pixel |= red << 8;
pixel |= green << 4;
pixel |= blue;

Binary file not shown.