* Fix build

This commit is contained in:
pancake 2011-05-11 16:48:20 +02:00
parent e8a2d5b4cf
commit b9fe1c0885
2 changed files with 10 additions and 10 deletions

View File

@ -42,16 +42,6 @@ static const char *r_cons_color_names[CONS_COLORS_SIZE+1] = {
"bgreen", "byellow", "bturqoise", "reset", "bgblack", "bgred", NULL
};
R_API void r_cons_invert(int set, int color) {
if (color) {
if (set) r_cons_strcat("\x1b[7m");
else r_cons_strcat("\x1b[27m");
} else {
if (set) r_cons_strcat("[");
else r_cons_strcat("]");
}
}
static const char *r_cons_colors[CONS_COLORS_SIZE+1] = {
Color_BLACK, // 0
Color_GRAY, // 1

View File

@ -344,3 +344,13 @@ R_API void r_cons_set_raw(int is_raw) {
#endif
fflush (stdout);
}
R_API void r_cons_invert(int set, int color) {
if (color) {
if (set) r_cons_strcat("\x1b[7m");
else r_cons_strcat("\x1b[27m");
} else {
if (set) r_cons_strcat("[");
else r_cons_strcat("]");
}
}