fcft: adjust to fcft-2.0 API changes

* font_*() -> fcft_*()
* struct font -> struct fcft_font
* struct glyph -> struct fcft_glyph
* enum subpixel_order -> enum fcft_subpixel
This commit is contained in:
Daniel Eklöf 2020-04-22 11:49:22 +02:00
parent b9e7417137
commit 03a5c8746f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 23 additions and 20 deletions

View file

@ -21,7 +21,7 @@ particle_default_destroy(struct particle *particle)
{
if (particle->deco != NULL)
particle->deco->destroy(particle->deco);
font_destroy(particle->font);
fcft_destroy(particle->font);
free(particle->on_click_template);
free(particle);
}
@ -29,7 +29,7 @@ particle_default_destroy(struct particle *particle)
struct particle *
particle_common_new(int left_margin, int right_margin,
const char *on_click_template,
struct font *font, pixman_color_t foreground,
struct fcft_font *font, pixman_color_t foreground,
struct deco *deco)
{
struct particle *p = calloc(1, sizeof(*p));