mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 08:12:44 +03:00
fix(gx): correct math in GxuFontGetWrappedTextHeight
This commit is contained in:
parent
8247e59088
commit
fbb45d43c6
@ -554,8 +554,8 @@ float GxuFontGetWrappedTextHeight(CGxFont* font, const char* text, float a3, flo
|
||||
|
||||
float v22 = GetScreenPixelHeight();
|
||||
float v14 = v22 * a7;
|
||||
float v13 = v14 + 0.99994999f;
|
||||
float v23 = v13 / v22;
|
||||
auto v13 = CMath::fuint_pi(v14);
|
||||
auto v23 = static_cast<float>(v13) / v22;
|
||||
|
||||
return (v18 / v22 + v23 * (float)(numLines - 1) + (float)numLines * a3);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user