Very minor fix for libctru 1.6.0 compatibility (#213)

This commit is contained in:
Wrong
2019-11-02 03:46:32 +08:00
committed by Alex Taber
parent ddfc39db56
commit 193feedf25

View File

@@ -434,7 +434,7 @@ void draw_text_wrap(float x, float y, float z, float scaleX, float scaleY, Color
if((consumed = decode_utf8(&codepoint, (unsigned char*)text)) == -1)
break;
float character_width = scaleX * (fontGetCharWidthInfo(fontGlyphIndexFromCodePoint(codepoint))->charWidth);
float character_width = scaleX * (fontGetCharWidthInfo(NULL, fontGlyphIndexFromCodePoint(NULL, codepoint))->charWidth);
if((current_width += character_width) > max_width)
{
char* last_space = NULL;