mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-04-14 02:37:05 +00:00
fix (?) some bugs with IIe/gsos high-bit characters.
This commit is contained in:
parent
6a117c7b8a
commit
9fcf9f333f
@ -220,26 +220,26 @@
|
||||
|
||||
| 0x80 .. 0x9f ${
|
||||
/* uppercase inverse/normal */
|
||||
uint8_t flag = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flag = _context.flags ^ Screen::FlagInverse;
|
||||
screen->putc(fc - 0x40, _context.cursor, flag);
|
||||
} $advance
|
||||
|
||||
| 0xa0 .. 0xbf ${
|
||||
/* special inverse/normal */
|
||||
uint8_t flag = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flag = _context.flags ^ Screen::FlagInverse;
|
||||
screen->putc(fc - 0x80, _context.cursor, flag);
|
||||
} $advance
|
||||
|
||||
| 0xc0 .. 0xdf ${
|
||||
/* uppercase normal / mouse text. */
|
||||
uint8_t flag = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flag = _context.flags ^ Screen::FlagInverse;
|
||||
if (flag) flag |= Screen::FlagMouseText;
|
||||
screen->putc(fc - 0x80, _context.cursor, flag);
|
||||
} $advance
|
||||
|
||||
| 0xe0 .. 0xff ${
|
||||
/* special inverse/normal */
|
||||
uint8_t flag = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flag = _context.flags ^ Screen::FlagInverse;
|
||||
screen->putc(fc - 0x80, _context.cursor, flag);
|
||||
} $advance
|
||||
|
||||
|
@ -420,26 +420,26 @@ static void advance(Screen *screen, gsos_context &ctx) {
|
||||
|
||||
| 0x80 .. 0x9f ${
|
||||
/* uppercase inverse/normal */
|
||||
uint8_t flags = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flags = _context.flags ^ Screen::FlagInverse;
|
||||
screen->putc(fc - 0x40, cursor, flags);
|
||||
} $advance_if
|
||||
|
||||
| 0xa0 .. 0xbf ${
|
||||
/* special inverse/normal */
|
||||
uint8_t flags = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flags = _context.flags ^ Screen::FlagInverse;
|
||||
screen->putc(fc - 0x80, cursor, flags);
|
||||
} $advance_if
|
||||
|
||||
| 0xc0 .. 0xdf ${
|
||||
/* uppercase normal / mouse text. */
|
||||
uint8_t flags = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flags = _context.flags ^ Screen::FlagInverse;
|
||||
if (flags) flags |= Screen::FlagMouseText;
|
||||
screen->putc(fc - 0x80, cursor, flags);
|
||||
} $advance_if
|
||||
|
||||
| 0xe0 .. 0xff ${
|
||||
/* special inverse/normal */
|
||||
uint8_t flags = ~(_context.flags & Screen::FlagInverse);
|
||||
uint8_t flags = _context.flags ^ Screen::FlagInverse;
|
||||
screen->putc(fc - 0x80, cursor, flags);
|
||||
} $advance_if
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user