diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp index c102f00e5..84722e3ac 100644 --- a/src/game/client/components/menus_ingame.cpp +++ b/src/game/client/components/menus_ingame.cpp @@ -225,30 +225,15 @@ void CMenus::RenderPlayers(CUIRect MainView) ButtonBar.HMargin(1.0f, &ButtonBar); float Width = ButtonBar.h * 2.0f; ButtonBar.VSplitLeft(Width, &Button, &ButtonBar); - Graphics()->TextureSet(g_pData->m_aImages[IMAGE_GUIICONS].m_Id); - Graphics()->QuadsBegin(); - RenderTools()->SelectSprite(SPRITE_GUIICON_MUTE); - IGraphics::CQuadItem QuadItem(Button.x, Button.y, Button.w, Button.h); - Graphics()->QuadsDrawTL(&QuadItem, 1); - Graphics()->QuadsEnd(); + DoIcon(IMAGE_GUIICONS, SPRITE_GUIICON_MUTE, &Button); ButtonBar.VSplitLeft(20.0f, 0, &ButtonBar); ButtonBar.VSplitLeft(Width, &Button, &ButtonBar); - Graphics()->TextureSet(g_pData->m_aImages[IMAGE_GUIICONS].m_Id); - Graphics()->QuadsBegin(); - RenderTools()->SelectSprite(SPRITE_GUIICON_EMOTICON_MUTE); - QuadItem = IGraphics::CQuadItem(Button.x, Button.y, Button.w, Button.h); - Graphics()->QuadsDrawTL(&QuadItem, 1); - Graphics()->QuadsEnd(); + DoIcon(IMAGE_GUIICONS, SPRITE_GUIICON_EMOTICON_MUTE, &Button); ButtonBar.VSplitLeft(20.0f, 0, &ButtonBar); ButtonBar.VSplitLeft(Width, &Button, &ButtonBar); - Graphics()->TextureSet(g_pData->m_aImages[IMAGE_GUIICONS].m_Id); - Graphics()->QuadsBegin(); - RenderTools()->SelectSprite(SPRITE_GUIICON_FRIEND); - QuadItem = IGraphics::CQuadItem(Button.x, Button.y, Button.w, Button.h); - Graphics()->QuadsDrawTL(&QuadItem, 1); - Graphics()->QuadsEnd(); + DoIcon(IMAGE_GUIICONS, SPRITE_GUIICON_FRIEND, &Button); int TotalPlayers = 0;