Skip to content

Commit

Permalink
Fixed color overflow in PAL_doFadeStep (#360)
Browse files Browse the repository at this point in the history
Finally merged :p
  • Loading branch information
werton authored Nov 6, 2024
1 parent 2623943 commit 35d7178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ bool NO_INLINE PAL_initFade(u16 fromCol, u16 toCol, const u16* palSrc, const u16

bool NO_INLINE PAL_doFadeStep(void)
{
// fading is done? --> exit
if (fadeCounter <= 0)
return FALSE;

// prepare fade palette for next frame
s16* palR = fadeR;
s16* palG = fadeG;
Expand Down

0 comments on commit 35d7178

Please sign in to comment.