浏览代码

Corrected issue with font tint

pull/639/head
Ray 6 年前
父节点
当前提交
ac31f51c5e
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/textures.c

+ 3
- 1
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);

正在加载...
取消
保存