Work in progress to improve BTextView and BTextControl. I don't know what _BTextInput_::AlignTextRect() was thought to do. Some of the fixes are Haiku specific and we need to make sure that we don't need them later on (flushing drawing commands).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12685 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-05-16 12:02:23 +00:00
parent 3c2fddee4e
commit 6d8d6cad9d
3 changed files with 33 additions and 17 deletions
@@ -2166,6 +2166,9 @@ BTextView::Highlight(int32 startOffset, int32 endOffset)
SetDrawingMode(B_OP_INVERT);
FillRegion(&selRegion, B_SOLID_HIGH);
SetDrawingMode(B_OP_COPY);
// TODO: unnecessary in R5 - maybe we should
// carry out drawing commands outside Draw() immediately?
Flush();
}
@@ -3807,6 +3810,9 @@ BTextView::DrawCaret(int32 offset)
caretRect.bottom = caretPoint.y + lineHeight;
InvertRect(caretRect);
// TODO: This call seems not necessary on R5. So we need to fix something
// in our app_server. We should "auto-flush" eventually.
Flush();
}