From 8856ec6b450e51419c8e9714f900e4e87904e811 Mon Sep 17 00:00:00 2001 From: Uneven Prankster Date: Mon, 27 Jan 2025 07:09:57 -0300 Subject: [PATCH] Name change for RGBA case --- src/rtext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rtext.c b/src/rtext.c index 687c12e7cf2b..61348de0adef 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -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];