summaryrefslogtreecommitdiffstats
path: root/src/color.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-14 23:17:17 -0300
committerAndrés <andmarti@gmail.com>2021-03-14 23:17:17 -0300
commit0aca263b755f49a0c82c6d72ba4ce9ed5c5632ce (patch)
treee6480f5dfd993df90fb59814eae66a64fe0c6d60 /src/color.c
parent50ea88259e22270e9ff0c2f3e3b5b0c863fa276b (diff)
REDEFINE_COLOR now takes 0-255 RGB values
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/color.c b/src/color.c
index 5b4bf66..259027b 100644
--- a/src/color.c
+++ b/src/color.c
@@ -554,7 +554,7 @@ int same_ucolor(struct ucolor * u, struct ucolor * v) {
* @brief Redefine one of the 8 ncurses colors to a new RGB value.
*
* Redefine stock ncurses color to a new RGB value. Only if terminal supports it.
- * RGB values must be between 0 and 1000.
+ * RGB values must be between 0 and 255.
*
* Example usage:
* @code
@@ -575,7 +575,7 @@ int redefine_color(char * color, int r, int g, int b) {
sc_error("Color not found");
return -1;
}
- if (init_color(atoi(s), r, g, b) == 0) {
+ if (init_extended_color(atoi(s), RGB(r, g, b)) == 0) {
sig_winchg();
if (! loading) sc_info("Color %s redefined to %d %d %d.", color, r, g, b);
return 0;