git-svn-id: svn://db.shs.com.ru/pip@258 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-09-07 10:49:17 +00:00
parent 5bc69bcf59
commit c089ad19ea
4 changed files with 11 additions and 7 deletions

View File

@@ -265,10 +265,10 @@ WORD PIScreen::SystemConsole::attributes(const PIScreenTypes::Cell & c) {
case White: attr = attr | BACKGROUND_MASK; break;
}
if ((c.format.flags & Inverse) == Inverse) {
uchar f = c.format.flags & 0xFF;
c.format.flags &= 0xFFFFFF00;
uchar f = attr & 0xFF;
attr &= 0xFFFFFF00;
f = (f << 4) | (f >> 4);
c.format.flags |= f;
attr |= f;
}
return attr;
}