DiskUsage: drawing artefact in TabView
This commit is contained in:
@@ -73,13 +73,12 @@ VolumeTab::IconWidth() const
|
|||||||
void
|
void
|
||||||
VolumeTab::DrawLabel(BView* owner, BRect frame)
|
VolumeTab::DrawLabel(BView* owner, BRect frame)
|
||||||
{
|
{
|
||||||
|
owner->SetDrawingMode(B_OP_OVER);
|
||||||
if (fIcon != NULL) {
|
if (fIcon != NULL) {
|
||||||
owner->SetDrawingMode(B_OP_OVER);
|
|
||||||
owner->MovePenTo(frame.left + kSmallHMargin,
|
owner->MovePenTo(frame.left + kSmallHMargin,
|
||||||
(frame.top + frame.bottom - fIcon->Bounds().Height()) / 2.0);
|
(frame.top + frame.bottom - fIcon->Bounds().Height()) / 2.0);
|
||||||
owner->DrawBitmap(fIcon);
|
owner->DrawBitmap(fIcon);
|
||||||
}
|
}
|
||||||
owner->SetDrawingMode(B_OP_COPY);
|
|
||||||
font_height fh;
|
font_height fh;
|
||||||
owner->GetFontHeight(&fh);
|
owner->GetFontHeight(&fh);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user