SDK/TextAreaWidget: Improve glyph selection
This commit is contained in:
parent
d3e3e9cbe2
commit
c781f7cb45
|
|
@ -60,7 +60,7 @@ namespace Ndk
|
||||||
for (; i < upperLimit - 1; ++i)
|
for (; i < upperLimit - 1; ++i)
|
||||||
{
|
{
|
||||||
Nz::Rectf bounds = m_drawer.GetGlyph(i).bounds;
|
Nz::Rectf bounds = m_drawer.GetGlyph(i).bounds;
|
||||||
if (x < bounds.x + bounds.width)
|
if (x < bounds.x + bounds.width * 0.75f)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue