grid: add per-cell combining characters

The data is *not* added to the cell struct, since that one is too
performance critical.

Instead, the data is added as a separate array in the row struct.

This allows our performance critical code paths that e.g. clear cells
to perform as before.
This commit is contained in:
Daniel Eklöf 2020-05-01 11:49:11 +02:00
parent 69c3e74498
commit b2c4115f3e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 11 additions and 1 deletions

View file

@ -77,10 +77,16 @@ struct damage {
int lines;
};
struct combining_chars {
uint8_t count;
wchar_t chars[5]; /* TODO: do we need this many? */
};
struct row {
struct cell *cells;
bool dirty;
bool linebreak;
struct combining_chars *comb_chars;
};
struct sixel {