mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: fix order we're checking custom codepoints
Fixes a crash when trying to print a "Legacy Computing" symbol (U+1FB00-U+1FB9B). Closes #1901
This commit is contained in:
parent
9cde179034
commit
f5c10a2452
3 changed files with 18 additions and 11 deletions
10
render.c
10
render.c
|
|
@ -817,14 +817,14 @@ render_cell(struct terminal *term, pixman_image_t *pix, pixman_region32_t *damag
|
|||
size_t count;
|
||||
size_t idx;
|
||||
|
||||
if (base >= GLYPH_OCTANTS_FIRST) {
|
||||
arr = &term->custom_glyphs.octants;
|
||||
count = GLYPH_OCTANTS_COUNT;
|
||||
idx = base - GLYPH_OCTANTS_FIRST;
|
||||
} else if (base >= GLYPH_LEGACY_FIRST) {
|
||||
if (base >= GLYPH_LEGACY_FIRST) {
|
||||
arr = &term->custom_glyphs.legacy;
|
||||
count = GLYPH_LEGACY_COUNT;
|
||||
idx = base - GLYPH_LEGACY_FIRST;
|
||||
} else if (base >= GLYPH_OCTANTS_FIRST) {
|
||||
arr = &term->custom_glyphs.octants;
|
||||
count = GLYPH_OCTANTS_COUNT;
|
||||
idx = base - GLYPH_OCTANTS_FIRST;
|
||||
} else if (base >= GLYPH_BRAILLE_FIRST) {
|
||||
arr = &term->custom_glyphs.braille;
|
||||
count = GLYPH_BRAILLE_COUNT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue