aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2016-09-15 10:47:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-22 05:41:54 -0400
commit3e7ec4a0e635d7b95c5ec30df3ed79164bbf3acb (patch)
tree3d167888f3b9736853830b5d9388e68063a2bb99
parent0bf1f4a8a399d2c8c0396b8cc0439f8d6ca3581b (diff)
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>
-rw-r--r--drivers/tty/vt/vt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 52442ccf20c0..20d89c2a780a 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -1313,11 +1313,11 @@ static int vc_t416_color(struct vc_data *vc, int i,
1313 return i; 1313 return i;
1314 1314
1315 if (vc->vc_par[i] == 5 && i + 1 <= vc->vc_npar) { 1315 if (vc->vc_par[i] == 5 && i + 1 <= vc->vc_npar) {
1316 /* 256 colours -- ubiquitous */ 1316 /* 256 colours */
1317 i++; 1317 i++;
1318 rgb_from_256(vc->vc_par[i], &c); 1318 rgb_from_256(vc->vc_par[i], &c);
1319 } else if (vc->vc_par[i] == 2 && i + 3 <= vc->vc_npar) { 1319 } else if (vc->vc_par[i] == 2 && i + 3 <= vc->vc_npar) {
1320 /* 24 bit -- extremely rare */ 1320 /* 24 bit */
1321 c.r = vc->vc_par[i + 1]; 1321 c.r = vc->vc_par[i + 1];
1322 c.g = vc->vc_par[i + 2]; 1322 c.g = vc->vc_par[i + 2];
1323 c.b = vc->vc_par[i + 3]; 1323 c.b = vc->vc_par[i + 3];