From e5ef81a064797a7aba042ec5ed7c7ed548b3345e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 23 Apr 2020 11:57:50 +0200 Subject: [PATCH] fcft: max/space advance fields have been renamed --- particles/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/particles/string.c b/particles/string.c index 9bfb5b5..07679b5 100644 --- a/particles/string.c +++ b/particles/string.c @@ -75,7 +75,7 @@ begin_expose(struct exposable *exposable) /* Calculate the size we need to render the glyphs */ for (int i = 0; i < e->num_glyphs; i++) - exposable->width += e->kern_x[i] + e->glyphs[i]->x_advance; + exposable->width += e->kern_x[i] + e->glyphs[i]->advance.x; return exposable->width; } @@ -135,7 +135,7 @@ expose(const struct exposable *exposable, pixman_image_t *pix, int x, int y, int pixman_image_unref(src); } - x += glyph->x_advance; + x += glyph->advance.x; } }