Skip to content

Commit

Permalink
Name change for RGBA case
Browse files Browse the repository at this point in the history
  • Loading branch information
Uneven Prankster committed Jan 27, 2025
1 parent 5e8a67e commit 8856ec6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rtext.c
Original file line number Diff line number Diff line change
Expand Up @@ -2258,12 +2258,12 @@ static Font LoadBMFont(const char *fileName)

for (int p = 0, pi = 0; p < (imFonts[i].width * imFonts[i].height * 2); p += 2, pi++)
{
((unsigned char *)(imFontAlpha.data))[p] = 0xff;
((unsigned char *)(imFontAlpha.data))[p + 1] = ((unsigned char *)imFonts[i].data)[pi * stride];
((unsigned char *)(imFont.data))[p] = 0xff;
((unsigned char *)(imFont.data))[p + 1] = ((unsigned char *)imFonts[i].data)[pi * stride];
}

UnloadImage(imFonts[i]);
imFonts[i] = imFontAlpha;
imFonts[i] = imFont;
}

Image fullFont = imFonts[0];
Expand Down

0 comments on commit 8856ec6

Please sign in to comment.