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