Fixed bug in curses driver that caused it not to compile.

This commit is contained in:
ddouthitt
2001-09-25 22:55:56 +00:00
parent 110b53a90e
commit 16d57ba2ec
+14 -4
View File
@@ -79,14 +79,24 @@ chtype get_color (char *colorstr) {
// #define DEFAULT_FOREGROUND_COLOR COLOR_WHITE
// #define DEFAULT_BACKGROUND_COLOR COLOR_RED
chtype
set_foreground_color (char * buf) {
if ((fore_color = get_color(buf)) < 0)
fore_color = DEFAULT_FOREGROUND_COLOR;
chtype color;
if ((color = get_color(buf)) < 0)
color = DEFAULT_FOREGROUND_COLOR;
return color;
}
chtype
set_background_color (char * buf) {
if ((back_color = get_color(buf)) < 0)
back_color = DEFAULT_BACKGROUND_COLOR;
chtype color;
if ((color = get_color(buf)) < 0)
color = DEFAULT_BACKGROUND_COLOR;
return color;
}
/*