mirror of
https://github.com/whoahq/whoa.git
synced 2026-12-01 18:23:38 +03:00
chore(gx): correct validation macros in GxuFontCreateString
This commit is contained in:
1 file changed
+7
-6
@@ -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) {
|
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_VALIDATE_BEGIN;
|
||||||
STORM_ASSERT(text);
|
STORM_VALIDATE(face);
|
||||||
// TODO
|
STORM_VALIDATE(text);
|
||||||
// STORM_ASSERT(fontHeight || (flags & EGxStringFlags_FixedSize));
|
STORM_VALIDATE(fontHeight || (flags & EGxStringFlags_FixedSize));
|
||||||
STORM_ASSERT(vertJustification < GxVJ_Last);
|
STORM_VALIDATE(vertJustification < GxVJ_Last);
|
||||||
STORM_ASSERT(horzJustification < GxHJ_Last);
|
STORM_VALIDATE(horzJustification < GxHJ_Last);
|
||||||
|
STORM_VALIDATE_END;
|
||||||
|
|
||||||
auto newString = CGxString::GetNewString(1);
|
auto newString = CGxString::GetNewString(1);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user