about summary refs log tree commit diff
path: root/src/game/client/components
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-10-16 11:27:49 +0200
committeroy <Tom_Adams@web.de>2010-10-16 11:27:49 +0200
commit662f43919cfb1cd449a75516a87ad2e9623636b1 (patch)
treea58b50046e01c25d2affe1c79a8842300f2c5aa1 /src/game/client/components
parent639c32d66147d2f7f9e27558d5b521a4590cceef (diff)
downloadzcatch-662f43919cfb1cd449a75516a87ad2e9623636b1.tar.gz
zcatch-662f43919cfb1cd449a75516a87ad2e9623636b1.zip
fixed overlapping restart warning
Diffstat (limited to 'src/game/client/components')
-rw-r--r--src/game/client/components/menus_settings.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp
index a09dba3a..45e99522 100644
--- a/src/game/client/components/menus_settings.cpp
+++ b/src/game/client/components/menus_settings.cpp
@@ -751,7 +751,8 @@ void CMenus::RenderSettings(CUIRect MainView)
 	static int s_SettingsPage = 0;
 
 	// render background
-	CUIRect Temp, TabBar;
+	CUIRect Temp, TabBar, RestartWarning;
+	MainView.HSplitBottom(15.0f, &MainView, &RestartWarning);
 	MainView.VSplitRight(120.0f, &MainView, &TabBar);
 	RenderTools()->DrawUIRect(&MainView, ms_ColorTabbarActive, CUI::CORNER_B|CUI::CORNER_TL, 10.0f);
 	TabBar.HSplitTop(50.0f, &Temp, &TabBar);
@@ -792,9 +793,5 @@ void CMenus::RenderSettings(CUIRect MainView)
 		RenderSettingsSound(MainView);
 
 	if(m_NeedRestartGraphics || m_NeedRestartSound)
-	{
-		CUIRect RestartWarning;
-		MainView.HSplitBottom(40, &MainView, &RestartWarning);
-		UI()->DoLabel(&RestartWarning, Localize("You must restart the game for all settings to take effect."), 15.0f, -1, 220);
-	}
+		UI()->DoLabel(&RestartWarning, Localize("You must restart the game for all settings to take effect."), 15.0f, -1);
 }