ref: ae660b7198deccb4b7348d743fda65e221c4df61
parent: a904f5b3ea8ac1a043441dd04976b51221c00bfc
author: Simon Howard <[email protected]>
date: Sun Sep 24 09:05:44 EDT 2006
Use proper arrow characters on spin controls and change their color. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 657
--- a/textscreen/txt_spinctrl.c
+++ b/textscreen/txt_spinctrl.c
@@ -81,11 +81,13 @@
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 @@
++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))