From 9bfbcc40c1d40159c3251fb741150d5e6d5ca3de Mon Sep 17 00:00:00 2001 From: auria Date: Thu, 24 Jun 2010 18:44:07 +0000 Subject: [PATCH] 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 --- src/guiengine/skin.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/guiengine/skin.cpp b/src/guiengine/skin.cpp index 83da575a7..e39cb829e 100644 --- a/src/guiengine/skin.cpp +++ b/src/guiengine/skin.cpp @@ -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); }