Applied a tip from Stephan: pass the location to DrawString directly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29017 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
374c632c55
commit
280987e2cb
@ -366,9 +366,9 @@ SettingsItem::DrawItem(BView *owner, BRect rect, bool drawEverything)
|
|||||||
|
|
||||||
font_height fheight;
|
font_height fheight;
|
||||||
owner->GetFontHeight(&fheight);
|
owner->GetFontHeight(&fheight);
|
||||||
owner->MovePenTo(rect.left + 4, rect.top + fheight.ascent + 2 + floorf(fheight.leading / 2));
|
|
||||||
|
|
||||||
owner->DrawString(Text());
|
owner->DrawString(Text(), BPoint(rect.left + 4, rect.top
|
||||||
|
+ fheight.ascent + 2 + floorf(fheight.leading / 2)));
|
||||||
|
|
||||||
owner->SetHighColor(kBlack);
|
owner->SetHighColor(kBlack);
|
||||||
owner->SetLowColor(owner->ViewColor());
|
owner->SetLowColor(owner->ViewColor());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user