about summary refs log tree commit diff
path: root/src/game/client/components/menus.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-01-08 18:16:38 +0100
committeroy <Tom_Adams@web.de>2012-01-08 18:16:38 +0100
commite960cbdff3bea74edfbca157679dcf65359e0739 (patch)
tree3cf2711fdf42f3d2f558cc660746146497526acd /src/game/client/components/menus.cpp
parent3811476c6e69824a6a67b913961c4ab4716eda20 (diff)
downloadzcatch-e960cbdff3bea74edfbca157679dcf65359e0739.tar.gz
zcatch-e960cbdff3bea74edfbca157679dcf65359e0739.zip
added a config to display the code string of a country flag instead of the image. Closes #897
Diffstat (limited to 'src/game/client/components/menus.cpp')
-rw-r--r--src/game/client/components/menus.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp
index 15837efc..5ef6b1ae 100644
--- a/src/game/client/components/menus.cpp
+++ b/src/game/client/components/menus.cpp
@@ -1132,12 +1132,8 @@ int CMenus::Render()
 					float OldWidth = Item.m_Rect.w;
 					Item.m_Rect.w = Item.m_Rect.h*2;
 					Item.m_Rect.x += (OldWidth-Item.m_Rect.w)/ 2.0f;
-					Graphics()->TextureSet(pEntry->m_Texture);
-					Graphics()->QuadsBegin();
-					Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
-					IGraphics::CQuadItem QuadItem(Item.m_Rect.x, Item.m_Rect.y, Item.m_Rect.w, Item.m_Rect.h);
-					Graphics()->QuadsDrawTL(&QuadItem, 1);
-					Graphics()->QuadsEnd();
+					vec4 Color(1.0f, 1.0f, 1.0f, 1.0f);
+					m_pClient->m_pCountryFlags->Render(pEntry->m_CountryCode, &Color, Item.m_Rect.x, Item.m_Rect.y, Item.m_Rect.w, Item.m_Rect.h);
 					UI()->DoLabel(&Label, pEntry->m_aCountryCodeString, 10.0f, 0);
 				}
 			}