Set low color to selection background color before drawing text.
This should remove AA bugs for selected item(s) text. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13779 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e8b43dc055
commit
a284b7b388
@ -294,9 +294,10 @@ BStringItem::DrawItem(BView *owner, BRect frame, bool complete)
|
||||
rgb_color lowColor = owner->LowColor();
|
||||
|
||||
if (IsSelected() || complete) {
|
||||
if (IsSelected())
|
||||
if (IsSelected()) {
|
||||
owner->SetHighColor(tint_color(lowColor, B_DARKEN_2_TINT));
|
||||
else
|
||||
owner->SetLowColor(owner->HighColor());
|
||||
} else
|
||||
owner->SetHighColor(lowColor);
|
||||
|
||||
owner->FillRect(frame);
|
||||
|
Loading…
Reference in New Issue
Block a user