mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed graphic issue with the mouse pointer. closes #1609
This commit is contained in:
parent
31c6d2684d
commit
693c409b96
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue