Corrected issue with font tint
This commit is contained in:
parent
d0608b031a
commit
ac31f51c5e
@ -1555,6 +1555,8 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co
|
|||||||
// Define ImageFont struct? or include Image spritefont in Font struct?
|
// Define ImageFont struct? or include Image spritefont in Font struct?
|
||||||
Image imFont = GetTextureData(font.texture);
|
Image imFont = GetTextureData(font.texture);
|
||||||
|
|
||||||
|
ImageFormat(&imFont, UNCOMPRESSED_R8G8B8A8); // Make sure image format could be properly colored!
|
||||||
|
|
||||||
ImageColorTint(&imFont, tint); // Apply color tint to font
|
ImageColorTint(&imFont, tint); // Apply color tint to font
|
||||||
|
|
||||||
// Create image to store text
|
// Create image to store text
|
||||||
|
Loading…
Reference in New Issue
Block a user