Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Oct 26, 2024
2 parents e12ac20 + 1c38f0c commit 7b6710b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RSDKv3/Palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void SetLimitedFade(byte paletteID, byte R, byte G, byte B, ushort alpha, int st
return;

uint alpha2 = 0xFF - alpha;
for (int i = startIndex; i <= endIndex; ++i) {
for (int i = startIndex; i < endIndex; ++i) {
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));
Expand Down

0 comments on commit 7b6710b

Please sign in to comment.