mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38: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()->WrapClamp();
|
||||
Graphics()->QuadsBegin();
|
||||
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
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)
|
||||
{
|
||||
Graphics()->TextureSet(pImage->m_OrgTexture);
|
||||
Graphics()->WrapClamp();
|
||||
Graphics()->QuadsBegin();
|
||||
Graphics()->SetColor(1.0f, 1.0f, 1.0f, *pFade/Seconds);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
|
|
Loading…
Reference in a new issue