Fixed rendering of disabled tabs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
48e1f98209
commit
9bfbcc40c1
@ -676,9 +676,6 @@ void Skin::drawRibbonChild(const core::rect< s32 > &rect, Widget* widget, const
|
||||
/* tab-bar ribbons */
|
||||
if (type == RIBBON_TABS)
|
||||
{
|
||||
// for now jsut don't draw it, change that if ever needed
|
||||
if (widget->m_deactivated) return;
|
||||
|
||||
BoxRenderParams* params;
|
||||
|
||||
if (mark_selected && (focused || parent_focused))
|
||||
@ -701,7 +698,7 @@ void Skin::drawRibbonChild(const core::rect< s32 > &rect, Widget* widget, const
|
||||
else rect2.LowerRightCorner.Y += 10;
|
||||
}
|
||||
|
||||
drawBoxFromStretchableTexture(widget, rect2, *params, parentRibbon->m_deactivated);
|
||||
drawBoxFromStretchableTexture(widget, rect2, *params, parentRibbon->m_deactivated || widget->m_deactivated);
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user