Skip to content

Commit

Permalink
Revert PaletteFade fix
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
MegAmi24 committed Oct 26, 2024
1 parent 2b90078 commit 15b6a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nexus/Palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void SetFade(byte r, byte g, byte b, ushort a, int start, int end)
a = 255;
if (end < 256)
++end;
for (int i = start; i <= end; ++i) {
for (int i = start; i < end; ++i) {
byte red = (ushort)(r * a + (0xFF - a) * palette8[i].r) >> 8;
byte green = (ushort)(g * a + (0xFF - a) * palette8[i].g) >> 8;
byte blue = (ushort)(b * a + (0xFF - a) * palette8[i].b) >> 8;
Expand Down

0 comments on commit 15b6a02

Please sign in to comment.