diff options
Diffstat (limited to 'textscreen/txt_radiobutton.c')
-rw-r--r-- | textscreen/txt_radiobutton.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/textscreen/txt_radiobutton.c b/textscreen/txt_radiobutton.c index 3c3bb5dd..fa722c13 100644 --- a/textscreen/txt_radiobutton.c +++ b/textscreen/txt_radiobutton.c @@ -43,11 +43,13 @@ static void TXT_RadioButtonSizeCalc(TXT_UNCAST_ARG(radiobutton)) static void TXT_RadioButtonDrawer(TXT_UNCAST_ARG(radiobutton)) { TXT_CAST_ARG(txt_radiobutton_t, radiobutton); + txt_saved_colors_t colors; int i; int w; w = radiobutton->widget.w; + TXT_SaveColors(&colors); TXT_FGColor(TXT_COLOR_BRIGHT_CYAN); TXT_DrawString("("); @@ -66,11 +68,11 @@ static void TXT_RadioButtonDrawer(TXT_UNCAST_ARG(radiobutton)) TXT_DrawString(") "); + TXT_RestoreColors(&colors); TXT_SetWidgetBG(radiobutton); - TXT_FGColor(TXT_COLOR_BRIGHT_WHITE); TXT_DrawString(radiobutton->label); - + for (i=strlen(radiobutton->label); i < w-5; ++i) { TXT_DrawString(" "); |