From 193feedf25ca7e0c4b99fe1552d99ad552cb9200 Mon Sep 17 00:00:00 2001 From: Wrong Date: Sat, 2 Nov 2019 03:46:32 +0800 Subject: [PATCH] Very minor fix for libctru 1.6.0 compatibility (#213) --- source/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/draw.c b/source/draw.c index 96b6146..cf2ab8e 100644 --- a/source/draw.c +++ b/source/draw.c @@ -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;