mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
chore(gx): correct validation macros in GxuFontCreateString
This commit is contained in:
parent
c38b8005e6
commit
850daf5e66
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user