Permalink
Browse files

only premultiply alpha if <renderfromopaque> is at least 2

  • Loading branch information...
1 parent cf11027 commit 100c443509be036768dbb7b88352735bec7719da Jonathan Marshall committed Jul 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/guilib/GUIImage.cpp
View
2 xbmc/guilib/GUIImage.cpp
@@ -207,7 +207,7 @@ void CGUIImage::Render(const CRect *bounds, CGUIControl const **start)
{
if (!IsVisible()) return;
- bool premultiplyAlpha = m_renderRegionOpaque;
+ bool premultiplyAlpha = g_advancedSettings.m_guiRenderFromOpaque > 1 && m_renderRegionOpaque;
for (vector<CFadingTexture *>::iterator itr = m_fadingTextures.begin(); itr != m_fadingTextures.end(); itr++)
{
(*itr)->m_texture->Render(premultiplyAlpha);

0 comments on commit 100c443

Please sign in to comment.