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
|
void
|
||||||
TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
||||||
{
|
{
|
||||||
|
owner->SetDrawingMode(B_OP_COPY);
|
||||||
owner->PushState();
|
owner->PushState();
|
||||||
if (IsSelected()) {
|
if (IsSelected()) {
|
||||||
owner->SetHighColor(128, 128, 128);
|
owner->SetHighColor(128, 128, 128);
|
||||||
@ -83,6 +84,7 @@ TestResultItem::DrawItem(BView *owner, BRect itemRect, bool drawEverthing)
|
|||||||
|
|
||||||
if (fErrorMessage.Length() == 0)
|
if (fErrorMessage.Length() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
owner->PushState();
|
owner->PushState();
|
||||||
font.SetFace(B_ITALIC_FACE);
|
font.SetFace(B_ITALIC_FACE);
|
||||||
owner->SetFont(&font);
|
owner->SetFont(&font);
|
||||||
|
Loading…
Reference in New Issue
Block a user