fixed ingame cursor graphic glitch. closes #1649

This commit is contained in:
oy 2018-11-11 18:12:57 +01:00
parent bff4f2d9cd
commit 26ebd7817d
2 changed files with 2 additions and 0 deletions

View file

@ -155,6 +155,7 @@ void CEmoticon::OnRender()
Graphics()->QuadsEnd();
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_CURSOR].m_Id);
Graphics()->WrapClamp();
Graphics()->QuadsBegin();
Graphics()->SetColor(1,1,1,1);
IGraphics::CQuadItem QuadItem(m_SelectorMouse.x+Screen.w/2,m_SelectorMouse.y+Screen.h/2,24,24);

View file

@ -313,6 +313,7 @@ void CSpectator::OnRender()
// draw cursor
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_CURSOR].m_Id);
Graphics()->WrapClamp();
Graphics()->QuadsBegin();
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
IGraphics::CQuadItem QuadItem(m_SelectorMouse.x+Width/2.0f, m_SelectorMouse.y+Height/2.0f, 48.0f, 48.0f);