Will fix (the class is cast-able to color_t)


On Sun, Jun 2, 2013 at 7:57 PM, Rainer Hochecker
<notifications@github.com>wrote:

> In xbmc/guilib/GUITexture.cpp:
>
> > @@ -174,8 +175,12 @@ void CGUITextureBase::Render()
> >
> >    // set our draw color
> >    #define MIX_ALPHA(a,c) (((a * (c >> 24)) / 255) << 24) | (c & 0x00ffffff)
> > -  color_t color = m_diffuseColor;
> > -  if (m_alpha != 0xFF) color = MIX_ALPHA(m_alpha, m_diffuseColor);
> > +
> > +  // diffuse color
> > +  color_t color = (m_info.diffuseColor) ? m_info.diffuseColor : m_diffuseColor;
>
> this does not compile on Linux. m_info.diffuseColor is a class
> (CGUIInfoColor) and not of type color_t
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xbmc/xbmc/pull/1772/files#r4491081>
> .
>