mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(gx): use correct offset in TextBlockAddShadow
This commit is contained in:
parent
d3c3c21237
commit
1414095e7e
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user