From 9f7c98b5f8617990642e9227b5e53777f80aa1a0 Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 31 Aug 2017 01:30:37 +0200 Subject: [PATCH] scr.rainbow is false by default and color enhanced --- libr/cons/rgb.c | 6 +++--- libr/core/cconfig.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libr/cons/rgb.c b/libr/cons/rgb.c index 8aefee174a..158bca6427 100644 --- a/libr/cons/rgb.c +++ b/libr/cons/rgb.c @@ -145,9 +145,9 @@ R_API int r_cons_rgb_parse(const char *p, ut8 *r, ut8 *g, ut8 *b, int *is_bg) { } R_API char *r_cons_rgb_str_off(char *outstr, ut64 off) { - const int r = (off >> 4) & 0xff; - const int g = (off >> 7) & 0xff; - const int b = (off >> 10) & 0xff; + const int r = (off >> 2) & 0xff; + const int g = (off >> 6) & 0xff; + const int b = (off >> 12) & 0xff; return r_cons_rgb_str (outstr, r, g, b, false); } diff --git a/libr/core/cconfig.c b/libr/core/cconfig.c index 78e9ce7826..ae34da2b9c 100644 --- a/libr/core/cconfig.c +++ b/libr/core/cconfig.c @@ -2182,7 +2182,7 @@ R_API int r_core_config_init(RCore *core) { SETPREF ("asm.middle", "false", "Allow disassembling jumps in the middle of an instruction"); SETPREF ("asm.noisy", "true", "Show comments considered noisy but possibly useful"); SETPREF ("asm.offset", "true", "Show offsets at disassembly"); - SETCB ("scr.rainbow", "true", &cb_scrrainbow, "Shows rainbow colors depending of address"); + SETCB ("scr.rainbow", "false", &cb_scrrainbow, "Shows rainbow colors depending of address"); SETPREF ("asm.reloff", "false", "Show relative offsets instead of absolute address in disasm"); SETPREF ("asm.reloff.flags", "false", "Show relative offsets to flags (not only functions)"); SETPREF ("asm.section", "false", "Show section name before offset");