Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Oct 16, 2023
2 parents aaf96c3 + 3b319b9 commit d13892e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions RSDKv3/Palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ void SetLimitedFade(byte paletteID, byte R, byte G, byte B, ushort alpha, int st
PACK_RGB888(activePalette[i], (byte)((ushort)(R * alpha + alpha2 * activePalette32[i].r) >> 8),
(byte)((ushort)(G * alpha + alpha2 * activePalette32[i].g) >> 8),
(byte)((ushort)(B * alpha + alpha2 * activePalette32[i].b) >> 8));
activePalette32[i].r = (byte)((ushort)(R * alpha + alpha2 * activePalette32[i].r) >> 8);
activePalette32[i].g = (byte)((ushort)(G * alpha + alpha2 * activePalette32[i].g) >> 8);
activePalette32[i].b = (byte)((ushort)(B * alpha + alpha2 * activePalette32[i].b) >> 8);
if (renderType == RENDER_HW)
if (renderType == RENDER_HW) { // not like this works on HW....
activePalette32[i].r = (byte)((ushort)(R * alpha + alpha2 * activePalette32[i].r) >> 8);
activePalette32[i].g = (byte)((ushort)(G * alpha + alpha2 * activePalette32[i].g) >> 8);
activePalette32[i].b = (byte)((ushort)(B * alpha + alpha2 * activePalette32[i].b) >> 8);
activePalette[i] |= 1;
}
}
}

0 comments on commit d13892e

Please sign in to comment.