And implemented the caret changes on Windows.

This commit is contained in:
Pietro Gagliardi 2017-02-07 19:55:21 -05:00
parent 3e4f99e0dd
commit 012ce92b71
1 changed files with 4 additions and 0 deletions

View File

@ -342,6 +342,10 @@ void uiDrawTextLayoutHitTest(uiDrawTextLayout *tl, double x, double y, uiDrawTex
result->YPosition = uiDrawTextLayoutHitTestPositionBefore;
else if (y >= height)
result->YPosition = uiDrawTextLayoutHitTestPositionAfter;
result->CaretX = m.left; // TODO is this correct?
result->CaretY = tl->lineInfo[line].y;
result->CaretHeight = tl->lineInfo[line].height;
}
void uiDrawTextLayoutByteRangeToRectangle(uiDrawTextLayout *tl, size_t start, size_t end, uiDrawTextLayoutByteRangeRectangle *r)