mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Fallout from the big revamp in r9214: colour handling was going a bit
wonky because I'd used the subkey for the red component in four places
where I should have used the green/blue subkeys instead. Thanks to
Martin Kletzander for spotting it.
[originally from svn r9449]
[r9214 == a1f3b7a358
]
This commit is contained in:
parent
947fa8f0ae
commit
63cb9c8356
8
config.c
8
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user