From 1f160ebd0691a1489f60398a65e1670593ec4c39 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 21 Dec 2025 11:40:27 -0600 Subject: [PATCH] chore(gx): name TEXTLINETEXTURE::WriteGeometry param --- src/gx/font/CGxString.cpp | 4 ++-- src/gx/font/CGxString.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gx/font/CGxString.cpp b/src/gx/font/CGxString.cpp index 09dc22a..7d6c2ca 100644 --- a/src/gx/font/CGxString.cpp +++ b/src/gx/font/CGxString.cpp @@ -28,7 +28,7 @@ void TEXTLINETEXTURE::Recycle(TEXTLINETEXTURE* ptr) { } } -void TEXTLINETEXTURE::WriteGeometry(CGxVertexPCT* buf, const CImVector& fontColor, const C2Vector& shadowOffset, const CImVector& shadowColor, const C3Vector& viewTranslation, bool a7, bool a8, int32_t ofs, int32_t size) { +void TEXTLINETEXTURE::WriteGeometry(CGxVertexPCT* buf, const CImVector& fontColor, const C2Vector& shadowOffset, const CImVector& shadowColor, const C3Vector& viewTranslation, bool hasShadow, bool a8, int32_t ofs, int32_t size) { if (!size || !this->m_vert.Count()) { return; } @@ -47,7 +47,7 @@ void TEXTLINETEXTURE::WriteGeometry(CGxVertexPCT* buf, const CImVector& fontColo size = v24; } - if (a7) { + if (hasShadow) { C3Vector shadowTranslation = { viewTranslation.x + floor(ScreenToPixelWidth(0, shadowOffset.x)), viewTranslation.y + floor(ScreenToPixelHeight(0, shadowOffset.y)), diff --git a/src/gx/font/CGxString.hpp b/src/gx/font/CGxString.hpp index b47474c..06172ce 100644 --- a/src/gx/font/CGxString.hpp +++ b/src/gx/font/CGxString.hpp @@ -27,7 +27,7 @@ class TEXTLINETEXTURE { TSGrowableArray m_colors; // Member functions - void WriteGeometry(CGxVertexPCT*, const CImVector&, const C2Vector&, const CImVector&, const C3Vector&, bool, bool, int32_t, int32_t); + void WriteGeometry(CGxVertexPCT*, const CImVector&, const C2Vector&, const CImVector&, const C3Vector&, bool hasShadow, bool, int32_t, int32_t); }; class CGxString : public TSLinkedNode {