mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-30 05:19:19 +00:00
...
This commit is contained in:
parent
d6f856f2f2
commit
7043d565c9
1 changed files with 2 additions and 2 deletions
|
|
@ -329,7 +329,7 @@ void
|
|||
clear_sprite_map(Font *font) {
|
||||
#define CLEAR(s) s->filled = false; s->rendered = false; s->colored = false; s->glyph = 0; zero_at_ptr(&s->extra_glyphs); s->x = 0; s->y = 0; s->z = 0; s->ligature_index = 0;
|
||||
SpritePosition *s;
|
||||
for (size_t i = 0; i < sizeof(font->sprite_map)/sizeof(font->sprite_map[0]); i++) {
|
||||
for (size_t i = 0; i < arraysz(font->sprite_map); i++) {
|
||||
s = font->sprite_map + i;
|
||||
CLEAR(s);
|
||||
while ((s = s->next)) {
|
||||
|
|
@ -343,7 +343,7 @@ void
|
|||
clear_special_glyph_cache(Font *font) {
|
||||
#define CLEAR(s) s->data = 0; s->glyph = 0;
|
||||
SpecialGlyphCache *s;
|
||||
for (size_t i = 0; i < sizeof(font->special_glyph_cache)/sizeof(font->special_glyph_cache[0]); i++) {
|
||||
for (size_t i = 0; i < arraysz(font->special_glyph_cache); i++) {
|
||||
s = font->special_glyph_cache + i;
|
||||
CLEAR(s);
|
||||
while ((s = s->next)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue