fix: correction emulation police erreur attribut

This commit is contained in:
Nicolas Hordé 2018-10-14 17:11:15 +02:00
parent 09e4ebbb38
commit 660ce13fdf
1 changed files with 2 additions and 2 deletions

View File

@ -1055,9 +1055,9 @@ void showchar(u16 coordx, u16 coordy, u8 thechar, u8 attrib)
set = pattern & 0x1;
if (set == 0)
if (vinfo->currentdepth==32)
color = egatorgb((attrib & 0xF0) >> 8);
color = egatorgb((attrib & 0xF0) >> 4);
else
color = egatovga((attrib & 0xF0) >> 8);
color = egatovga((attrib & 0xF0) >> 4);
else
if (vinfo->currentdepth==32)
color = egatorgb(attrib & 0x0F);