Fixed rain fade-in.
This commit is contained in:
parent
39ba328afb
commit
74a90889ac
1 changed files with 2 additions and 1 deletions
|
@ -566,11 +566,12 @@ static void ApplyGammaShiftWithBlend(u8 startPalIndex, u8 numPalettes, s8 gammaI
|
||||||
|
|
||||||
while (curPalIndex < numPalettes)
|
while (curPalIndex < numPalettes)
|
||||||
{
|
{
|
||||||
|
CpuFastCopy(gPlttBufferUnfaded + palOffset, gPlttBufferFaded + palOffset, 16 * sizeof(u16));
|
||||||
UpdatePalettesWithTime(1 << (palOffset >> 4)); // Apply TOD blend
|
UpdatePalettesWithTime(1 << (palOffset >> 4)); // Apply TOD blend
|
||||||
if (sPaletteGammaTypes[curPalIndex] == GAMMA_NONE)
|
if (sPaletteGammaTypes[curPalIndex] == GAMMA_NONE)
|
||||||
{
|
{
|
||||||
// No gamma shift. Simply blend the colors.
|
// No gamma shift. Simply blend the colors.
|
||||||
BlendPalettesFine(1 << (palOffset >> 4), gPlttBufferFaded, gPlttBufferFaded, blendCoeff, blendColor);
|
BlendPalettesFine(1, gPlttBufferFaded + palOffset, gPlttBufferFaded + palOffset, blendCoeff, blendColor);
|
||||||
palOffset += 16;
|
palOffset += 16;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue