cursorBounds.height -= cursorHeightDiff;
}
+ if (cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height)
+ {
+ float cursorHeightDiff = cursorBounds.y + cursorBounds.height - textBounds.y - textBounds.height - 1.0f;
+ cursorBounds.height -= cursorHeightDiff;
+ }
+
if (cursorBounds.x == textBounds.x + textBounds.width)
{
cursorBounds.x -= 1.0f;
cursorBounds.height -= cursorHeightDiff;
}
+ if (cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height)
+ {
+ int cursorHeightDiff = cursorBounds.y + cursorBounds.height - textBounds.y - textBounds.height - 1;
+ cursorBounds.height -= cursorHeightDiff;
+ }
+
if (cursorBounds.x == textBounds.x + textBounds.width)
{
cursorBounds.x -= 1;