mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed problems with the dilate fix. Closes #1317
This commit is contained in:
parent
f59f3090ac
commit
b64c8dff25
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue