Fixed display artifacts when scrolling horizontally.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27335 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,20 +34,13 @@ void
|
|||||||
TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
||||||
{
|
{
|
||||||
owner->SetDrawingMode(B_OP_COPY);
|
owner->SetDrawingMode(B_OP_COPY);
|
||||||
|
|
||||||
owner->PushState();
|
owner->PushState();
|
||||||
if (IsSelected()) {
|
if (IsSelected()) {
|
||||||
owner->SetHighColor(128, 128, 128);
|
rgb_color lowColor = owner->LowColor();
|
||||||
|
owner->SetHighColor(tint_color(lowColor, B_DARKEN_2_TINT));
|
||||||
}
|
}
|
||||||
else {
|
else if (fOk) {
|
||||||
owner->SetHighColor(255, 255, 255);
|
|
||||||
}
|
|
||||||
owner->StrokeRect(itemRect);
|
|
||||||
owner->PopState();
|
|
||||||
|
|
||||||
itemRect.InsetBy(1, 1);
|
|
||||||
|
|
||||||
owner->PushState();
|
|
||||||
if (fOk) {
|
|
||||||
// green background color on success
|
// green background color on success
|
||||||
owner->SetHighColor(200, 255, 200);
|
owner->SetHighColor(200, 255, 200);
|
||||||
}
|
}
|
||||||
@@ -58,6 +51,8 @@ TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
|||||||
owner->FillRect(itemRect);
|
owner->FillRect(itemRect);
|
||||||
owner->PopState();
|
owner->PopState();
|
||||||
|
|
||||||
|
itemRect.InsetBy(1, 1);
|
||||||
|
|
||||||
owner->MovePenTo(itemRect.left+1, itemRect.top+1);
|
owner->MovePenTo(itemRect.left+1, itemRect.top+1);
|
||||||
if (fDirectBitmap != NULL) {
|
if (fDirectBitmap != NULL) {
|
||||||
owner->DrawBitmap(fDirectBitmap);
|
owner->DrawBitmap(fDirectBitmap);
|
||||||
|
|||||||
Reference in New Issue
Block a user