Fixed BMenuBar drawing. Managed to have BMenu working (partially) with BMenuBar.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10551 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2004-12-30 11:03:36 +00:00
parent 860ec9a8ac
commit 31e911da16
2 changed files with 37 additions and 27 deletions
+6 -2
View File
@@ -145,6 +145,8 @@ BMenuBar::Draw(BRect updateRect)
} else {
BRect bounds(Bounds());
PushState();
SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_LIGHTEN_2_TINT));
StrokeLine(BPoint(0.0f, bounds.bottom - 2.0f), BPoint(0.0f, 0.0f));
StrokeLine(BPoint(bounds.right, 0.0f));
@@ -156,8 +158,10 @@ BMenuBar::Draw(BRect updateRect)
SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_DARKEN_2_TINT));
StrokeLine(BPoint(0.0f, bounds.bottom), BPoint(bounds.right, bounds.bottom));
StrokeLine(BPoint(bounds.right, 0.0f), BPoint(bounds.right, bounds.bottom));
DrawItems(updateRect);
PopState();
DrawItems(updateRect);
}
}