about summary refs log tree commit diff
path: root/src/game/client/components/menus_settings.cpp
diff options
context:
space:
mode:
authorTom Adams <Tom_Adams@web.de>2010-05-29 15:53:57 +0000
committerTom Adams <Tom_Adams@web.de>2010-05-29 15:53:57 +0000
commite16fdc3f3edc4f66cda9a44679af2ebe1b235612 (patch)
tree8c9d3c5881e3d7af37188937dac8a7cb82bcc359 /src/game/client/components/menus_settings.cpp
parentf96fccb6e79cf2f691b67ae4152f3031863faec8 (diff)
downloadzcatch-e16fdc3f3edc4f66cda9a44679af2ebe1b235612.tar.gz
zcatch-e16fdc3f3edc4f66cda9a44679af2ebe1b235612.zip
added clipping to editboxes (#773) and made their cursors blink
Diffstat (limited to 'src/game/client/components/menus_settings.cpp')
-rw-r--r--src/game/client/components/menus_settings.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp
index a612ed77..dc5451b2 100644
--- a/src/game/client/components/menus_settings.cpp
+++ b/src/game/client/components/menus_settings.cpp
@@ -60,7 +60,8 @@ void CMenus::RenderSettingsPlayer(CUIRect MainView)
 		UI()->DoLabel(&Button, aBuf, 14.0, -1);
 		Button.VSplitLeft(80.0f, 0, &Button);
 		Button.VSplitLeft(180.0f, &Button, 0);
-		if(DoEditBox(g_Config.m_PlayerName, &Button, g_Config.m_PlayerName, sizeof(g_Config.m_PlayerName), 14.0f))
+		static float Offset = 0.0f;
+		if(DoEditBox(g_Config.m_PlayerName, &Button, g_Config.m_PlayerName, sizeof(g_Config.m_PlayerName), 14.0f, &Offset))
 			m_NeedSendinfo = true;
 
 		// extra spacing
@@ -598,7 +599,8 @@ void CMenus::RenderSettingsSound(CUIRect MainView)
 		UI()->DoLabel(&Button, Localize("Sample rate"), 14.0f, -1);
 		Button.VSplitLeft(110.0f, 0, &Button);
 		Button.VSplitLeft(180.0f, &Button, 0);
-		DoEditBox(&g_Config.m_SndRate, &Button, aBuf, sizeof(aBuf), 14.0f);
+		static float Offset = 0.0f;
+		DoEditBox(&g_Config.m_SndRate, &Button, aBuf, sizeof(aBuf), 14.0f, &Offset);
 		int Before = g_Config.m_SndRate;
 		g_Config.m_SndRate = str_toint(aBuf);