summaryrefslogtreecommitdiffstats
path: root/libass/ass_shaper.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_shaper.c')
-rw-r--r--libass/ass_shaper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index fc12974..77425a5 100644
--- a/libass/ass_shaper.c
+++ b/libass/ass_shaper.c
@@ -595,7 +595,7 @@ shape_harfbuzz_process_run(GlyphInfo *glyphs, hb_buffer_t *buf, int offset)
// if we have more than one glyph per cluster, allocate a new one
// and attach to the root glyph
- if (info->skip == 0) {
+ if (!info->skip) {
while (info->next)
info = info->next;
info->next = malloc(sizeof(GlyphInfo));
@@ -608,7 +608,7 @@ shape_harfbuzz_process_run(GlyphInfo *glyphs, hb_buffer_t *buf, int offset)
}
// set position and advance
- info->skip = 0;
+ info->skip = false;
info->glyph_index = glyph_info[j].codepoint;
info->offset.x = pos[j].x_offset * info->scale_x;
info->offset.y = -pos[j].y_offset * info->scale_y;
@@ -634,7 +634,7 @@ static void shape_harfbuzz(ASS_Shaper *shaper, GlyphInfo *glyphs, size_t len)
// Initialize: skip all glyphs, this is undone later as needed
for (i = 0; i < len; i++)
- glyphs[i].skip = 1;
+ glyphs[i].skip = true;
for (i = 0; i < len; i++) {
int offset = i;
@@ -883,7 +883,7 @@ static void ass_shaper_skip_characters(TextInfo *text_info)
|| glyphs[i].symbol == 0x00ad
|| glyphs[i].symbol == 0x034f) {
glyphs[i].symbol = 0;
- glyphs[i].skip++;
+ glyphs[i].skip = true;
}
}
}