From 3643263ce98dd9fa6ee0367b8c1f1544ce04b461 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 16 Dec 2025 15:51:36 -0600 Subject: [PATCH] fix(gx): fix incorrect cast in CGxString::InitializeViewTranslation --- src/gx/font/CGxString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gx/font/CGxString.cpp b/src/gx/font/CGxString.cpp index 99fe241..09dc22a 100644 --- a/src/gx/font/CGxString.cpp +++ b/src/gx/font/CGxString.cpp @@ -580,7 +580,7 @@ void CGxString::InitializeViewTranslation() { this->m_viewTranslation.x += (this->m_blockWidth * 0.5f); } - float v13 = CMath::fuint_pi(this->m_spacing * static_cast(GetScreenPixelHeight())) / GetScreenPixelHeight(); + float v13 = CMath::fuint_pi(this->m_spacing * static_cast(GetScreenPixelHeight())) / static_cast(GetScreenPixelHeight()); float v24 = v13 * (float)(this->m_intB0 - 1) + (float)this->m_intB0 * this->m_currentFontHeight; if (this->m_intD4 >= 4) {