diff options
| author | Ray <raysan5@gmail.com> | 2018-09-05 10:47:57 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2018-09-05 10:47:57 +0200 |
| commit | ac31f51c5e621b7d0796709cdcbca1f8032ffe4f (patch) | |
| tree | 8f5d87ae6d81e7ffc1032ec5dd3b43742ee789b3 /src | |
| parent | d0608b031a55763877c087993471a46c249fd428 (diff) | |
| download | raylib-ac31f51c5e621b7d0796709cdcbca1f8032ffe4f.tar.gz raylib-ac31f51c5e621b7d0796709cdcbca1f8032ffe4f.zip | |
Corrected issue with font tint
Diffstat (limited to 'src')
| -rw-r--r-- | src/textures.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c index 700b4be9..9e86af92 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1555,7 +1555,9 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co // Define ImageFont struct? or include Image spritefont in Font struct? Image imFont = GetTextureData(font.texture); - ImageColorTint(&imFont, tint); // Apply color tint to font + ImageFormat(&imFont, UNCOMPRESSED_R8G8B8A8); // Make sure image format could be properly colored! + + ImageColorTint(&imFont, tint); // Apply color tint to font // Create image to store text Image imText = GenImageColor((int)imSize.x, (int)imSize.y, BLANK); |
