Fix some stuff
This commit is contained in:
parent
8457cb4df7
commit
d8f6af3191
|
|
@ -28,8 +28,6 @@ namespace Ndk
|
||||||
|
|
||||||
void AppendText(const Nz::String& text);
|
void AppendText(const Nz::String& text);
|
||||||
|
|
||||||
void UpdateTextSprite();
|
|
||||||
|
|
||||||
inline void Clear();
|
inline void Clear();
|
||||||
|
|
||||||
//virtual TextAreaWidget* Clone() const = 0;
|
//virtual TextAreaWidget* Clone() const = 0;
|
||||||
|
|
@ -115,6 +113,7 @@ namespace Ndk
|
||||||
|
|
||||||
void RefreshCursor();
|
void RefreshCursor();
|
||||||
void UpdateDisplayText();
|
void UpdateDisplayText();
|
||||||
|
void UpdateTextSprite();
|
||||||
|
|
||||||
CharacterFilter m_characterFilter;
|
CharacterFilter m_characterFilter;
|
||||||
EchoMode m_echoMode;
|
EchoMode m_echoMode;
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ namespace Ndk
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Nz::Vector2ui(i - firstLineGlyph, line);
|
return Nz::Vector2ui(Nz::Vector2<std::size_t>(i - firstLineGlyph, line));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Nz::Vector2ui::Zero();
|
return Nz::Vector2ui::Zero();
|
||||||
|
|
@ -572,7 +572,6 @@ namespace Ndk
|
||||||
*glyphIndex = cursorGlyph;
|
*glyphIndex = cursorGlyph;
|
||||||
|
|
||||||
std::size_t glyphCount = m_drawer.GetGlyphCount();
|
std::size_t glyphCount = m_drawer.GetGlyphCount();
|
||||||
float position;
|
|
||||||
if (glyphCount > 0 && lineInfo.glyphIndex < cursorGlyph)
|
if (glyphCount > 0 && lineInfo.glyphIndex < cursorGlyph)
|
||||||
{
|
{
|
||||||
const auto& glyph = m_drawer.GetGlyph(std::min(cursorGlyph, glyphCount - 1));
|
const auto& glyph = m_drawer.GetGlyph(std::min(cursorGlyph, glyphCount - 1));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue