Fixed out-of-bounds array accesses in Toshiba 3100e video code - fixes display when using profile guided optimisation.
This commit is contained in:
parent
5adac80648
commit
496b3884ab
1 changed files with 0 additions and 4 deletions
|
|
@ -599,15 +599,11 @@ void t3100e_recalcattrs(t3100e_t *t3100e)
|
|||
{
|
||||
blinkcols[n][0] = normcols[n][0] = amber;
|
||||
blinkcols[n][1] = normcols[n][1] = black;
|
||||
blinkcols[n+128][0] = normcols[n+128][0] = amber;
|
||||
blinkcols[n+128][1] = normcols[n+128][1] = black;
|
||||
}
|
||||
else /* Normal */
|
||||
{
|
||||
blinkcols[n][0] = normcols[n][0] = black;
|
||||
blinkcols[n][1] = normcols[n][1] = amber;
|
||||
blinkcols[n+128][0] = normcols[n+128][0] = black;
|
||||
blinkcols[n+128][1] = normcols[n+128][1] = amber;
|
||||
}
|
||||
if (t3100e->attrmap & 8) boldcols[n] = 1; /* Bold */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue