mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix texture wrapping mode for menuimages
This commit is contained in:
parent
be1adf7e51
commit
d4a752e446
|
@ -166,6 +166,7 @@ int CMenus::DoButton_MenuImage(const void *pID, const char *pText, int Checked,
|
||||||
{
|
{
|
||||||
|
|
||||||
Graphics()->TextureSet(pImage->m_GreyTexture);
|
Graphics()->TextureSet(pImage->m_GreyTexture);
|
||||||
|
Graphics()->WrapClamp();
|
||||||
Graphics()->QuadsBegin();
|
Graphics()->QuadsBegin();
|
||||||
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
|
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||||
IGraphics::CQuadItem QuadItem(Image.x, Image.y, Image.w, Image.h);
|
IGraphics::CQuadItem QuadItem(Image.x, Image.y, Image.w, Image.h);
|
||||||
|
@ -175,6 +176,7 @@ int CMenus::DoButton_MenuImage(const void *pID, const char *pText, int Checked,
|
||||||
if(*pFade > 0.0f)
|
if(*pFade > 0.0f)
|
||||||
{
|
{
|
||||||
Graphics()->TextureSet(pImage->m_OrgTexture);
|
Graphics()->TextureSet(pImage->m_OrgTexture);
|
||||||
|
Graphics()->WrapClamp();
|
||||||
Graphics()->QuadsBegin();
|
Graphics()->QuadsBegin();
|
||||||
Graphics()->SetColor(1.0f, 1.0f, 1.0f, *pFade/Seconds);
|
Graphics()->SetColor(1.0f, 1.0f, 1.0f, *pFade/Seconds);
|
||||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||||
|
|
Loading…
Reference in a new issue