2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:47:42 +00:00

Bug fixes and more CStateManager imps

This commit is contained in:
Jack Andersen
2017-02-13 18:27:20 -10:00
parent ac5f28eeff
commit 59406a069b
18 changed files with 194 additions and 43 deletions

View File

@@ -23,7 +23,9 @@ CTextColor CTextParser::ParseColor(const char16_t* str, int len)
u8 a = 0xff;
if (len == 9)
a = GetColorValue(str + 7);
return CTextColor(r, g, b, a);
CTextColor ret;
ret.fromRGBA8(r, g, b, a);
return ret;
}
u8 CTextParser::GetColorValue(const char16_t* str)