mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
fix #3566 (third try)
This commit is contained in:
parent
764eb84be6
commit
742b4370b9
@ -167,12 +167,12 @@ R_API char *r_cons_pal_parse (const char *str) {
|
||||
r = rgbnum (p[4], '0');
|
||||
g = rgbnum (p[5], '0');
|
||||
b = rgbnum (p[6], '0');
|
||||
r_cons_rgb_str (out, r, g, b, 0);
|
||||
r_cons_rgb_str (out + strlen(out), r, g, b, 1);
|
||||
} else if (strlen (s) == 10) {
|
||||
r = rgbnum (p[4], p[5]);
|
||||
g = rgbnum (p[6], p[7]);
|
||||
b = rgbnum (p[8], p[9]);
|
||||
r_cons_rgb_str (out, r, g, b, 0);
|
||||
r_cons_rgb_str (out + strlen(out), r, g, b, 1);
|
||||
}
|
||||
}
|
||||
for (i = 0; colors[i].name; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user