fixed problems with the dilate fix. Closes #1317

This commit is contained in:
oy 2015-02-24 12:32:24 +01:00
parent f59f3090ac
commit b64c8dff25
2 changed files with 4 additions and 4 deletions

View file

@ -178,7 +178,7 @@ int CMenus::DoButton_MenuImage(const void *pID, const char *pText, int Checked,
Graphics()->TextureSet(pImage->m_OrgTexture);
Graphics()->WrapClamp();
Graphics()->QuadsBegin();
Graphics()->SetColor(1.0f, 1.0f, 1.0f, *pFade/Seconds);
Graphics()->SetColor(1.0f*FadeVal, 1.0f*FadeVal, 1.0f*FadeVal, FadeVal);
Graphics()->QuadsDrawTL(&QuadItem, 1);
Graphics()->QuadsEnd();
}

View file

@ -238,9 +238,9 @@ void CRenderTools::RenderQuads(CQuad *pQuads, int NumQuads, int RenderFlags, ENV
{
float aChannels[4];
pfnEval(q->m_ColorEnvOffset/1000.0f, q->m_ColorEnv, aChannels, pUser);
r = aChannels[0];
g = aChannels[1];
b = aChannels[2];
r = aChannels[0]*aChannels[3];
g = aChannels[1]*aChannels[3];
b = aChannels[2]*aChannels[3];
a = aChannels[3];
}