mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-03 16:36:26 +00:00
REVIEWED: Issue #3105
This commit is contained in:
@@ -3290,8 +3290,7 @@ void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSiz
|
||||
if (GetFontDefault().texture.id == 0) LoadFontDefault();
|
||||
|
||||
Vector2 position = { (float)posX, (float)posY };
|
||||
// NOTE: For default font, spacing is set to desired font size / default font size (10)
|
||||
ImageDrawTextEx(dst, GetFontDefault(), text, position, (float)fontSize, (float)fontSize/10, color); // WARNING: Module required: rtext
|
||||
ImageDrawTextEx(dst, GetFontDefault(), text, position, (float)fontSize, 1.0f, color); // WARNING: Module required: rtext
|
||||
#else
|
||||
TRACELOG(LOG_WARNING, "IMAGE: ImageDrawText() requires module: rtext");
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user