This commit is contained in:
Adam D. Ruppe 2020-09-28 11:08:04 -04:00
parent 0cbc008746
commit aa7c8f2839
2 changed files with 5 additions and 0 deletions

View file

@ -806,10 +806,13 @@ class TerminalEmulator {
static struct TerminalCell {
align(1):
private union {
// OMG the top 11 bits of a dchar are always 0
// and i can reuse them!!!
struct {
dchar chStore = ' '; /// the character
TextAttributes attributesStore; /// color, etc.
}
// 64 bit pointer also has unused 16 bits but meh.
NonCharacterData nonCharacterDataStore; /// iff hasNonCharacterData
}