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 --- textscreen/txt_button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'textscreen/txt_button.c') diff --git a/textscreen/txt_button.c b/textscreen/txt_button.c index 536e5f56..989bd4fc 100644 --- a/textscreen/txt_button.c +++ b/textscreen/txt_button.c @@ -38,7 +38,7 @@ static void TXT_ButtonSizeCalc(TXT_UNCAST_ARG(button)) button->widget.h = 1; } -static void TXT_ButtonDrawer(TXT_UNCAST_ARG(button), int selected) +static void TXT_ButtonDrawer(TXT_UNCAST_ARG(button)) { TXT_CAST_ARG(txt_button_t, button); int i; @@ -48,7 +48,7 @@ static void TXT_ButtonDrawer(TXT_UNCAST_ARG(button), int selected) TXT_FGColor(TXT_COLOR_BRIGHT_WHITE); - TXT_SetWidgetBG(button, selected); + TXT_SetWidgetBG(button); TXT_DrawString(button->label); -- cgit v1.2.3