Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const char* C2D_TextFontParseLine(C2D_Text* text, C2D_Font font, C2D_TextBuf buf
wordNum++;

text->end = buf->glyphCount;
text->width *= s_textScale;
text->width *= font ? font->textScale : s_textScale;
text->lines = 1;
text->words = wordNum;
return (const char*)p;
Expand Down