Fix C/C++ errors generated by CLion IDE
This commit is contained in:
+3
-3
@@ -1479,17 +1479,17 @@ u32 GetStringWidthFixedWidthFont(const u8 *str, u8 fontId, u8 letterSpacing)
|
||||
return (u8)(GetFontAttribute(fontId, 0) + letterSpacing) * width;
|
||||
}
|
||||
|
||||
u32 (*GetFontWidthFunc(u8 glyphId))(u16, bool32)
|
||||
u32 (*GetFontWidthFunc(u8 glyphId))(u16 _glyphId, bool32 _isJapanese)
|
||||
{
|
||||
u32 i;
|
||||
|
||||
for (i = 0; i < 7; ++i)
|
||||
{
|
||||
if (glyphId == gGlyphWidthFuncs[i].font_id)
|
||||
return gGlyphWidthFuncs[i].func;
|
||||
return *gGlyphWidthFuncs[i].func;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
u32 GetStringWidth(u8 fontId, const u8 *str, s16 letterSpacing)
|
||||
|
||||
Reference in New Issue
Block a user