diff options
author | Simon Howard | 2011-10-23 19:25:55 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-23 19:25:55 +0000 |
commit | dd52766c7be893a6a5db31bc396ccef8d758af45 (patch) | |
tree | 0ece2688a18f5f8f3d893047973d1c6ab4c82df1 /textscreen/txt_button.c | |
parent | 71d316afb2ae7191a4ef6fac2d757238ae3616e1 (diff) | |
download | chocolate-doom-dd52766c7be893a6a5db31bc396ccef8d758af45.tar.gz chocolate-doom-dd52766c7be893a6a5db31bc396ccef8d758af45.tar.bz2 chocolate-doom-dd52766c7be893a6a5db31bc396ccef8d758af45.zip |
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
Diffstat (limited to 'textscreen/txt_button.c')
-rw-r--r-- | textscreen/txt_button.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |