X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=config.c;h=c50d97da61d057bd1df7f4daa8d79104e1e020a0;hb=63cb9c835663881e2c473753b7e54d2ceb2b7d47;hp=87cff8cdeb0ebaa93d17e55a47f18410d1713f61;hpb=947fa8f0aee7b9f54eee499d81f6d27af721ab1a;p=PuTTY.git diff --git a/config.c b/config.c index 87cff8cd..c50d97da 100644 --- a/config.c +++ b/config.c @@ -847,8 +847,8 @@ static void colour_handler(union control *ctrl, void *dlg, } else { clear = FALSE; r = conf_get_int_int(conf, CONF_colours, i*3+0); - g = conf_get_int_int(conf, CONF_colours, i*3+0); - b = conf_get_int_int(conf, CONF_colours, i*3+0); + g = conf_get_int_int(conf, CONF_colours, i*3+1); + b = conf_get_int_int(conf, CONF_colours, i*3+2); } update = TRUE; } @@ -901,8 +901,8 @@ static void colour_handler(union control *ctrl, void *dlg, */ if (dlg_coloursel_results(ctrl, dlg, &r, &g, &b)) { conf_set_int_int(conf, CONF_colours, i*3+0, r); - conf_set_int_int(conf, CONF_colours, i*3+0, g); - conf_set_int_int(conf, CONF_colours, i*3+0, b); + conf_set_int_int(conf, CONF_colours, i*3+1, g); + conf_set_int_int(conf, CONF_colours, i*3+2, b); clear = FALSE; update = TRUE; }