From 850daf5e66828214eb824b0b884fe18796185183 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 14 Dec 2025 21:16:31 -0600 Subject: [PATCH] chore(gx): correct validation macros in GxuFontCreateString --- src/gx/font/GxuFont.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gx/font/GxuFont.cpp b/src/gx/font/GxuFont.cpp index a7bc1b3..43981d6 100644 --- a/src/gx/font/GxuFont.cpp +++ b/src/gx/font/GxuFont.cpp @@ -303,12 +303,13 @@ int32_t GxuFontCreateFont(const char* name, float fontHeight, CGxFont*& face, ui } int32_t GxuFontCreateString(CGxFont* face, const char* text, float fontHeight, const C3Vector& position, float blockWidth, float blockHeight, float spacing, CGxString*& string, EGxFontVJusts vertJustification, EGxFontHJusts horzJustification, uint32_t flags, const CImVector& color, float charSpacing, float scale) { - STORM_ASSERT(face); - STORM_ASSERT(text); - // TODO - // STORM_ASSERT(fontHeight || (flags & EGxStringFlags_FixedSize)); - STORM_ASSERT(vertJustification < GxVJ_Last); - STORM_ASSERT(horzJustification < GxHJ_Last); + STORM_VALIDATE_BEGIN; + STORM_VALIDATE(face); + STORM_VALIDATE(text); + STORM_VALIDATE(fontHeight || (flags & EGxStringFlags_FixedSize)); + STORM_VALIDATE(vertJustification < GxVJ_Last); + STORM_VALIDATE(horzJustification < GxHJ_Last); + STORM_VALIDATE_END; auto newString = CGxString::GetNewString(1);