summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-09-24 13:05:44 +0000
committerSimon Howard2006-09-24 13:05:44 +0000
commitae660b7198deccb4b7348d743fda65e221c4df61 (patch)
tree250aab70c801018a1edc9a7be9238b961c115d63
parenta904f5b3ea8ac1a043441dd04976b51221c00bfc (diff)
downloadchocolate-doom-ae660b7198deccb4b7348d743fda65e221c4df61.tar.gz
chocolate-doom-ae660b7198deccb4b7348d743fda65e221c4df61.tar.bz2
chocolate-doom-ae660b7198deccb4b7348d743fda65e221c4df61.zip
Use proper arrow characters on spin controls and change their color.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 657
-rw-r--r--textscreen/txt_spinctrl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/textscreen/txt_spinctrl.c b/textscreen/txt_spinctrl.c
index 074adb07..2b00ee59 100644
--- a/textscreen/txt_spinctrl.c
+++ b/textscreen/txt_spinctrl.c
@@ -81,11 +81,13 @@ static void TXT_SpinControlDrawer(TXT_UNCAST_ARG(spincontrol), int selected)
unsigned int i;
unsigned int padding;
- TXT_FGColor(TXT_COLOR_BRIGHT_WHITE);
+ TXT_FGColor(TXT_COLOR_BRIGHT_CYAN);
TXT_BGColor(TXT_COLOR_BLUE, 0);
- TXT_DrawString("< ");
+ TXT_DrawString("\x1b ");
+ TXT_FGColor(TXT_COLOR_BRIGHT_WHITE);
+
// Choose background color
if (selected && spincontrol->editing)
@@ -129,8 +131,9 @@ static void TXT_SpinControlDrawer(TXT_UNCAST_ARG(spincontrol), int selected)
++i;
}
+ TXT_FGColor(TXT_COLOR_BRIGHT_CYAN);
TXT_BGColor(TXT_COLOR_BLUE, 0);
- TXT_DrawString(" >");
+ TXT_DrawString(" \x1a");
}
static void TXT_SpinControlDestructor(TXT_UNCAST_ARG(spincontrol))