mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
cell: we only need 4 bytes for the longest utf8 sequence
We don't *have* to NULL-terminate the utf8 string. So don't. This makes the cell glyph 4 bytes exactly, which is better for alignment and cache usage.
This commit is contained in:
parent
cf71534768
commit
b1f8dd75d6
3 changed files with 3 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ struct attributes {
|
|||
|
||||
struct cell {
|
||||
struct attributes attrs;
|
||||
char c[5];
|
||||
char c[4];
|
||||
} __attribute__((packed));
|
||||
|
||||
struct scroll_region {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue