summaryrefslogtreecommitdiff
path: root/textscreen/txt_dropdown.c
diff options
context:
space:
mode:
authorSimon Howard2011-04-04 20:07:07 +0000
committerSimon Howard2011-04-04 20:07:07 +0000
commit9f3f6683d929d118b18e21b06a0b729586569e1a (patch)
tree1a30dd5d65b9b371eb7beb66273ba134f2a38319 /textscreen/txt_dropdown.c
parentf596cfcd76c8c03c41c0691561c9b3c9c4419393 (diff)
downloadchocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.tar.gz
chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.tar.bz2
chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.zip
Change the background color when hovering over widgets.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2320
Diffstat (limited to 'textscreen/txt_dropdown.c')
-rw-r--r--textscreen/txt_dropdown.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/textscreen/txt_dropdown.c b/textscreen/txt_dropdown.c
index c8103302..01cf830d 100644
--- a/textscreen/txt_dropdown.c
+++ b/textscreen/txt_dropdown.c
@@ -197,15 +197,7 @@ static void TXT_DropdownListDrawer(TXT_UNCAST_ARG(list), int selected)
// Set bg/fg text colors.
- if (selected)
- {
- TXT_BGColor(TXT_COLOR_GREY, 0);
- }
- else
- {
- TXT_BGColor(TXT_COLOR_BLUE, 0);
- }
-
+ TXT_SetWidgetBG(list, selected);
TXT_FGColor(TXT_COLOR_BRIGHT_WHITE);
// Select a string to draw from the list, if the current value is