From dd52766c7be893a6a5db31bc396ccef8d758af45 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 23 Oct 2011 19:25:55 +0000 Subject: Rework textscreen focus handling so that input boxes will stop editing when they lose their focus (thanks Twelve). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2460 --- setup/txt_keyinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup/txt_keyinput.c') diff --git a/setup/txt_keyinput.c b/setup/txt_keyinput.c index 6f1ee4dd..19b0d56e 100644 --- a/setup/txt_keyinput.c +++ b/setup/txt_keyinput.c @@ -112,7 +112,7 @@ static void TXT_KeyInputSizeCalc(TXT_UNCAST_ARG(key_input)) } -static void TXT_KeyInputDrawer(TXT_UNCAST_ARG(key_input), int selected) +static void TXT_KeyInputDrawer(TXT_UNCAST_ARG(key_input)) { TXT_CAST_ARG(txt_key_input_t, key_input); char buf[20]; @@ -127,7 +127,7 @@ static void TXT_KeyInputDrawer(TXT_UNCAST_ARG(key_input), int selected) TXT_GetKeyDescription(*key_input->variable, buf); } - TXT_SetWidgetBG(key_input, selected); + TXT_SetWidgetBG(key_input); TXT_FGColor(TXT_COLOR_BRIGHT_WHITE); TXT_DrawString(buf); -- cgit v1.2.3