diff options
Diffstat (limited to 'textscreen/txt_spinctrl.c')
-rw-r--r-- | textscreen/txt_spinctrl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/textscreen/txt_spinctrl.c b/textscreen/txt_spinctrl.c index a4d20343..0b77805f 100644 --- a/textscreen/txt_spinctrl.c +++ b/textscreen/txt_spinctrl.c @@ -147,15 +147,17 @@ static void TXT_SpinControlDrawer(TXT_UNCAST_ARG(spincontrol)) TXT_CAST_ARG(txt_spincontrol_t, spincontrol); unsigned int i; unsigned int padding; + txt_saved_colors_t colors; int focused; focused = spincontrol->widget.focused; TXT_FGColor(TXT_COLOR_BRIGHT_CYAN); - TXT_BGColor(TXT_WINDOW_BACKGROUND, 0); TXT_DrawString("\x1b "); - + + TXT_SaveColors(&colors); + TXT_FGColor(TXT_COLOR_BRIGHT_WHITE); // Choose background color @@ -193,8 +195,7 @@ static void TXT_SpinControlDrawer(TXT_UNCAST_ARG(spincontrol)) ++i; } - TXT_FGColor(TXT_COLOR_BRIGHT_CYAN); - TXT_BGColor(TXT_WINDOW_BACKGROUND, 0); + TXT_RestoreColors(&colors); TXT_DrawString(" \x1a"); } |