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:
Jérôme Duval 2009-01-25 19:43:41 +00:00
parent 374c632c55
commit 280987e2cb

View File

@ -366,9 +366,9 @@ SettingsItem::DrawItem(BView *owner, BRect rect, bool drawEverything)
font_height 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->SetLowColor(owner->ViewColor());