Fixed bug in curses driver that caused it not to compile.
This commit is contained in:
@@ -79,14 +79,24 @@ chtype get_color (char *colorstr) {
|
|||||||
// #define DEFAULT_FOREGROUND_COLOR COLOR_WHITE
|
// #define DEFAULT_FOREGROUND_COLOR COLOR_WHITE
|
||||||
// #define DEFAULT_BACKGROUND_COLOR COLOR_RED
|
// #define DEFAULT_BACKGROUND_COLOR COLOR_RED
|
||||||
|
|
||||||
|
chtype
|
||||||
set_foreground_color (char * buf) {
|
set_foreground_color (char * buf) {
|
||||||
if ((fore_color = get_color(buf)) < 0)
|
chtype color;
|
||||||
fore_color = DEFAULT_FOREGROUND_COLOR;
|
|
||||||
|
if ((color = get_color(buf)) < 0)
|
||||||
|
color = DEFAULT_FOREGROUND_COLOR;
|
||||||
|
|
||||||
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chtype
|
||||||
set_background_color (char * buf) {
|
set_background_color (char * buf) {
|
||||||
if ((back_color = get_color(buf)) < 0)
|
chtype color;
|
||||||
back_color = DEFAULT_BACKGROUND_COLOR;
|
|
||||||
|
if ((color = get_color(buf)) < 0)
|
||||||
|
color = DEFAULT_BACKGROUND_COLOR;
|
||||||
|
|
||||||
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user