Workaround for drawing issue in Haiku. It seems the initial drawing state when drawing a list item is different from BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1de41c158d
commit
df96d14d39
@ -33,6 +33,7 @@ TestResultItem::~TestResultItem()
|
||||
void
|
||||
TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
||||
{
|
||||
owner->SetDrawingMode(B_OP_COPY);
|
||||
owner->PushState();
|
||||
if (IsSelected()) {
|
||||
owner->SetHighColor(128, 128, 128);
|
||||
@ -83,6 +84,7 @@ TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
||||
|
||||
if (fErrorMessage.Length() == 0)
|
||||
return;
|
||||
|
||||
owner->PushState();
|
||||
font.SetFace(B_ITALIC_FACE);
|
||||
owner->SetFont(&font);
|
||||
|
Loading…
Reference in New Issue
Block a user