From 9f3f6683d929d118b18e21b06a0b729586569e1a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 4 Apr 2011 20:07:07 +0000 Subject: Change the background color when hovering over widgets. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2320 --- setup/txt_joybinput.c | 10 +--------- setup/txt_keyinput.c | 10 +--------- setup/txt_mouseinput.c | 10 +--------- 3 files changed, 3 insertions(+), 27 deletions(-) (limited to 'setup') diff --git a/setup/txt_joybinput.c b/setup/txt_joybinput.c index cde3d2c2..861414f7 100644 --- a/setup/txt_joybinput.c +++ b/setup/txt_joybinput.c @@ -153,15 +153,7 @@ static void TXT_JoystickInputDrawer(TXT_UNCAST_ARG(joystick_input), int selected GetJoystickButtonDescription(*joystick_input->variable, buf); } - if (selected) - { - TXT_BGColor(TXT_COLOR_GREY, 0); - } - else - { - TXT_BGColor(TXT_COLOR_BLUE, 0); - } - + TXT_SetWidgetBG(joystick_input, selected); TXT_FGColor(TXT_COLOR_BRIGHT_WHITE); TXT_DrawString(buf); diff --git a/setup/txt_keyinput.c b/setup/txt_keyinput.c index 08eb9d8c..dfa6ede2 100644 --- a/setup/txt_keyinput.c +++ b/setup/txt_keyinput.c @@ -118,15 +118,7 @@ static void TXT_KeyInputDrawer(TXT_UNCAST_ARG(key_input), int selected) TXT_GetKeyDescription(*key_input->variable, buf); } - if (selected) - { - TXT_BGColor(TXT_COLOR_GREY, 0); - } - else - { - TXT_BGColor(TXT_COLOR_BLUE, 0); - } - + TXT_SetWidgetBG(key_input, selected); TXT_FGColor(TXT_COLOR_BRIGHT_WHITE); TXT_DrawString(buf); diff --git a/setup/txt_mouseinput.c b/setup/txt_mouseinput.c index 4f454c8c..2c14a010 100644 --- a/setup/txt_mouseinput.c +++ b/setup/txt_mouseinput.c @@ -111,15 +111,7 @@ static void TXT_MouseInputDrawer(TXT_UNCAST_ARG(mouse_input), int selected) GetMouseButtonDescription(*mouse_input->variable, buf); } - if (selected) - { - TXT_BGColor(TXT_COLOR_GREY, 0); - } - else - { - TXT_BGColor(TXT_COLOR_BLUE, 0); - } - + TXT_SetWidgetBG(mouse_input, selected); TXT_FGColor(TXT_COLOR_BRIGHT_WHITE); TXT_DrawString(buf); -- cgit v1.2.3