mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-21 13:24:15 +08:00
vt: Drop a no longer true comment.
Some guy went on a patching spree, adding 24-bit colour support all around: https://gist.github.com/XVilka/8346728 Signed-off-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0bf1f4a8a3
commit
3e7ec4a0e6
@ -1313,11 +1313,11 @@ static int vc_t416_color(struct vc_data *vc, int i,
|
|||||||
return i;
|
return i;
|
||||||
|
|
||||||
if (vc->vc_par[i] == 5 && i + 1 <= vc->vc_npar) {
|
if (vc->vc_par[i] == 5 && i + 1 <= vc->vc_npar) {
|
||||||
/* 256 colours -- ubiquitous */
|
/* 256 colours */
|
||||||
i++;
|
i++;
|
||||||
rgb_from_256(vc->vc_par[i], &c);
|
rgb_from_256(vc->vc_par[i], &c);
|
||||||
} else if (vc->vc_par[i] == 2 && i + 3 <= vc->vc_npar) {
|
} else if (vc->vc_par[i] == 2 && i + 3 <= vc->vc_npar) {
|
||||||
/* 24 bit -- extremely rare */
|
/* 24 bit */
|
||||||
c.r = vc->vc_par[i + 1];
|
c.r = vc->vc_par[i + 1];
|
||||||
c.g = vc->vc_par[i + 2];
|
c.g = vc->vc_par[i + 2];
|
||||||
c.b = vc->vc_par[i + 3];
|
c.b = vc->vc_par[i + 3];
|
||||||
|
Loading…
Reference in New Issue
Block a user