SDK: TextAreaWidget: silence harmless shadow warnings
This commit is contained in:
parent
724adb599a
commit
e29f2f7a92
|
|
@ -582,9 +582,9 @@ namespace Ndk
|
||||||
};
|
};
|
||||||
|
|
||||||
// Move text so that cursor is always visible
|
// Move text so that cursor is always visible
|
||||||
const auto* glyph = GetGlyph(m_cursorPositionEnd, nullptr);
|
const auto* lastGlyph = GetGlyph(m_cursorPositionEnd, nullptr);
|
||||||
float glyphPos = (glyph) ? glyph->bounds.x : 0.f;
|
float glyphPos = (lastGlyph) ? lastGlyph->bounds.x : 0.f;
|
||||||
float glyphWidth = (glyph) ? glyph->bounds.width : 0.f;
|
float glyphWidth = (lastGlyph) ? lastGlyph->bounds.width : 0.f;
|
||||||
|
|
||||||
auto& node = m_textEntity->GetComponent<Ndk::NodeComponent>();
|
auto& node = m_textEntity->GetComponent<Ndk::NodeComponent>();
|
||||||
float textPosition = node.GetPosition(Nz::CoordSys_Local).x - paddingWidth;
|
float textPosition = node.GetPosition(Nz::CoordSys_Local).x - paddingWidth;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue