fixed graphic issue with the mouse pointer. closes #1609

This commit is contained in:
Tom_Adams@web.de 2018-11-10 09:10:53 +01:00 committed by oy
parent 31c6d2684d
commit 693c409b96
2 changed files with 4 additions and 0 deletions

View file

@ -2443,11 +2443,13 @@ void CMenus::OnRender()
// render cursor
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_CURSOR].m_Id);
Graphics()->WrapClamp();
Graphics()->QuadsBegin();
Graphics()->SetColor(1,1,1,1);
IGraphics::CQuadItem QuadItem(mx, my, 24, 24);
Graphics()->QuadsDrawTL(&QuadItem, 1);
Graphics()->QuadsEnd();
Graphics()->WrapNormal();
// render debug information
if(g_Config.m_Debug)

View file

@ -4316,12 +4316,14 @@ void CEditor::Render()
{
// render butt ugly mouse cursor
Graphics()->TextureSet(m_CursorTexture);
Graphics()->WrapClamp();
Graphics()->QuadsBegin();
if(ms_pUiGotContext == UI()->HotItem())
Graphics()->SetColor(1,0,0,1);
IGraphics::CQuadItem QuadItem(mx,my, 16.0f, 16.0f);
Graphics()->QuadsDrawTL(&QuadItem, 1);
Graphics()->QuadsEnd();
Graphics()->WrapNormal();
}
if(m_MouseEdMode == MOUSE_PIPETTE)