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 UpdateTextSprite();
|
||||
|
||||
inline void Clear();
|
||||
|
||||
//virtual TextAreaWidget* Clone() const = 0;
|
||||
|
|
@ -115,6 +113,7 @@ namespace Ndk
|
|||
|
||||
void RefreshCursor();
|
||||
void UpdateDisplayText();
|
||||
void UpdateTextSprite();
|
||||
|
||||
CharacterFilter m_characterFilter;
|
||||
EchoMode m_echoMode;
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ namespace Ndk
|
|||
break;
|
||||
}
|
||||
|
||||
return Nz::Vector2ui(i - firstLineGlyph, line);
|
||||
return Nz::Vector2ui(Nz::Vector2<std::size_t>(i - firstLineGlyph, line));
|
||||
}
|
||||
|
||||
return Nz::Vector2ui::Zero();
|
||||
|
|
@ -572,7 +572,6 @@ namespace Ndk
|
|||
*glyphIndex = cursorGlyph;
|
||||
|
||||
std::size_t glyphCount = m_drawer.GetGlyphCount();
|
||||
float position;
|
||||
if (glyphCount > 0 && lineInfo.glyphIndex < cursorGlyph)
|
||||
{
|
||||
const auto& glyph = m_drawer.GetGlyph(std::min(cursorGlyph, glyphCount - 1));
|
||||
|
|
|
|||
Loading…
Reference in New Issue