fix(gx): correct math in GxuFontGetWrappedTextHeight

This commit is contained in:
fallenoak 2025-11-05 20:06:29 -06:00
parent 8247e59088
commit fbb45d43c6
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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);
}