fix(gx): use correct offset in TextBlockAddShadow

This commit is contained in:
fallenoak 2025-12-15 11:28:32 -06:00
parent d3c3c21237
commit 1414095e7e
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -76,7 +76,7 @@ void TextBlockAddShadow(HTEXTBLOCK string, CImVector color, const C2Vector& offs
C2Vector ndcOffset;
DDCToNDC(offset.x, offset.y, &ndcOffset.x, &ndcOffset.y);
GxuFontAddShadow(TextBlockGetStringPtr(string), color, offset);
GxuFontAddShadow(TextBlockGetStringPtr(string), color, ndcOffset);
}
HTEXTBLOCK TextBlockCreate(HTEXTFONT fontHandle, const char* text, const CImVector& color, const C3Vector& position, float fontHeight, float blockWidth, float blockHeight, uint32_t flags, float charSpacing, float lineSpacing, float scale) {