Somewhat improve the blurriness on top of tabs at some resolutions

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9214 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-07-10 01:30:13 +00:00
parent 6b9a1bad85
commit 4df9e87f01

View File

@ -738,6 +738,12 @@ void Skin::drawRibbonChild(const core::rect< s32 > &rect, Widget* widget, const
/* tab-bar ribbons */ /* tab-bar ribbons */
if (type == RIBBON_TABS) if (type == RIBBON_TABS)
{ {
video::SMaterial& material2D = irr_driver->getVideoDriver()->getMaterial2D();
for (unsigned int n=0; n<MATERIAL_MAX_TEXTURES; n++)
{
material2D.UseMipMaps = false;
}
const bool mouseIn = rect.isPointInside(irr_driver->getDevice()->getCursorControl()->getPosition()); const bool mouseIn = rect.isPointInside(irr_driver->getDevice()->getCursorControl()->getPosition());
BoxRenderParams* params; BoxRenderParams* params;
@ -766,7 +772,10 @@ void Skin::drawRibbonChild(const core::rect< s32 > &rect, Widget* widget, const
drawBoxFromStretchableTexture(widget, rect2, *params, parentRibbon->m_deactivated || widget->m_deactivated); drawBoxFromStretchableTexture(widget, rect2, *params, parentRibbon->m_deactivated || widget->m_deactivated);
for (unsigned int n=0; n<MATERIAL_MAX_TEXTURES; n++)
{
material2D.UseMipMaps = true;
}
} }
/* icon ribbons */ /* icon ribbons */
else else