diff options
-rw-r--r-- | libass/ass_shaper.c | 4 | ||||
-rw-r--r-- | libass/ass_shaper.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c index 171704b..ab94f10 100644 --- a/libass/ass_shaper.c +++ b/libass/ass_shaper.c @@ -758,10 +758,10 @@ static void shape_fribidi(ASS_Shaper *shaper, GlyphInfo *glyphs, size_t len) * \param shaper shaper instance * \param kern toggle kerning */ -void ass_shaper_set_kerning(ASS_Shaper *shaper, int kern) +void ass_shaper_set_kerning(ASS_Shaper *shaper, bool kern) { #ifdef CONFIG_HARFBUZZ - shaper->features[KERN].value = !!kern; + shaper->features[KERN].value = kern; #endif } diff --git a/libass/ass_shaper.h b/libass/ass_shaper.h index 5001fc7..d12870f 100644 --- a/libass/ass_shaper.h +++ b/libass/ass_shaper.h @@ -22,13 +22,14 @@ typedef struct ass_shaper ASS_Shaper; #include <fribidi.h> +#include <stdbool.h> #include "ass_render.h" void ass_shaper_info(ASS_Library *lib); ASS_Shaper *ass_shaper_new(void); void ass_shaper_free(ASS_Shaper *shaper); void ass_shaper_empty_cache(ASS_Shaper *shaper); -void ass_shaper_set_kerning(ASS_Shaper *shaper, int kern); +void ass_shaper_set_kerning(ASS_Shaper *shaper, bool kern); void ass_shaper_find_runs(ASS_Shaper *shaper, ASS_Renderer *render_priv, GlyphInfo *glyphs, size_t len); void ass_shaper_set_base_direction(ASS_Shaper *shaper, FriBidiParType dir); |