1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +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:
Jacob Nevins 2006-06-20 21:10:33 +00:00
parent b1997cc32c
commit f8f21619c2
2 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -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