From 086240f26db4e85d8366b9e73aa5929e6493ff51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 28 Jun 2005 19:20:03 +0000 Subject: [PATCH] The work-around is no longer needed; but since restoring the high color only is cheaper than a full PushState()/PopState() we'll continue to use it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13328 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuBar.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index 04ee40b11c..11b1d1c1fb 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -137,8 +137,6 @@ BMenuBar::Draw(BRect updateRect) { // TODO: implement additional border styles if (IsEnabled()) { - // ToDo: this is a work-around for broken PushState()/PopState() -// PushState(); rgb_color color = HighColor(); BRect bounds(Bounds()); @@ -157,8 +155,8 @@ BMenuBar::Draw(BRect updateRect) StrokeLine(BPoint(0.0f, bounds.bottom), BPoint(bounds.right, bounds.bottom)); StrokeLine(BPoint(bounds.right, 0.0f), BPoint(bounds.right, bounds.bottom)); -// PopState(); SetHighColor(color); + // revert to previous used color (cheap PushState()/PopState()) DrawItems(updateRect); } else {