mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
In the config dialog, clip RGB values to [0..255] rather than reducing them
mod 256. Document that the RGB values can be edited, and their range. [originally from svn r6734]
This commit is contained in:
parent
b1997cc32c
commit
f8f21619c2
4
config.c
4
config.c
@ -564,7 +564,9 @@ static void colour_handler(union control *ctrl, void *dlg,
|
|||||||
int i, cval;
|
int i, cval;
|
||||||
|
|
||||||
dlg_editbox_get(ctrl, dlg, buf, lenof(buf));
|
dlg_editbox_get(ctrl, dlg, buf, lenof(buf));
|
||||||
cval = atoi(buf) & 255;
|
cval = atoi(buf);
|
||||||
|
if (cval > 255) cval = 255;
|
||||||
|
if (cval < 0) cval = 0;
|
||||||
|
|
||||||
i = dlg_listbox_index(cd->listbox, dlg);
|
i = dlg_listbox_index(cd->listbox, dlg);
|
||||||
if (i >= 0) {
|
if (i >= 0) {
|
||||||
|
@ -1533,7 +1533,9 @@ use the list box to select which colour you want to modify. The \i{RGB
|
|||||||
values} for that colour will appear on the right-hand side of the
|
values} for that colour will appear on the right-hand side of the
|
||||||
list box. Now, if you press the \q{Modify} button, you will be
|
list box. Now, if you press the \q{Modify} button, you will be
|
||||||
presented with a colour selector, in which you can choose a new
|
presented with a colour selector, in which you can choose a new
|
||||||
colour to go in place of the old one.
|
colour to go in place of the old one. (You may also edit the RGB
|
||||||
|
values directly in the edit boxes, if you wish; each value is an
|
||||||
|
integer from 0 to 255.)
|
||||||
|
|
||||||
PuTTY allows you to set the \i{cursor colour}, the \i{default foreground}
|
PuTTY allows you to set the \i{cursor colour}, the \i{default foreground}
|
||||||
and \I{default background}background, and the precise shades of all the
|
and \I{default background}background, and the precise shades of all the
|
||||||
|
Loading…
Reference in New Issue
Block a user