Skip to content

Commit

Permalink
fix broken thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonx254 committed Oct 16, 2023
1 parent 97a2c60 commit 3b319b9
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 3b319b9

Please sign in to comment.