Always use B_OP_OVER for rendering the text in BMenuItem, not just when using

BControlLook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29598 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-03-18 17:19:05 +00:00
parent 1a72cb4139
commit 36759a6b6c

View File

@ -439,7 +439,9 @@ BMenuItem::DrawContent()
BPoint lineStart = fSuper->PenLocation();
float labelWidth, labelHeight;
GetContentSize(&labelWidth, &labelHeight);
GetContentSize(&labelWidth, &labelHeight);
fSuper->SetDrawingMode(B_OP_OVER);
// truncate if needed
// TODO: Actually, this is still never triggered
@ -482,9 +484,6 @@ BMenuItem::Draw()
rgb_color noTint = fSuper->LowColor();
rgb_color bgColor = noTint;
if (be_control_look != NULL)
fSuper->SetDrawingMode(B_OP_OVER);
// set low color and fill background if selected
bool activated = selected && (enabled || Submenu())
/*&& fSuper->fRedrawAfterSticky*/;