diff options
author | Dr.Smile <vabnick@gmail.com> | 2017-04-08 20:57:42 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2017-07-31 06:27:24 +0300 |
commit | c1e2e40cc9461d35340967e2c0d0aadd73dae999 (patch) | |
tree | b5e803f1a794fe2c1b0befdd25c44049458002ee /libass/ass_outline.c | |
parent | abfa6cfdb045d16383b72c78b2ee60929c575a87 (diff) | |
download | libass-c1e2e40cc9461d35340967e2c0d0aadd73dae999.tar.bz2 libass-c1e2e40cc9461d35340967e2c0d0aadd73dae999.tar.xz |
cosmetic: fix codestyle
Diffstat (limited to 'libass/ass_outline.c')
-rw-r--r-- | libass/ass_outline.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libass/ass_outline.c b/libass/ass_outline.c index 60bb7ee..e8c5e53 100644 --- a/libass/ass_outline.c +++ b/libass/ass_outline.c @@ -234,8 +234,8 @@ static inline double vec_len(Vector vec) static bool emit_point(StrokerState *str, OutlinePoint pt, Vector offs, char tag, int dir) { - int32_t dx = (int32_t)(str->xbord * offs.x); - int32_t dy = (int32_t)(str->ybord * offs.y); + int32_t dx = (int32_t) (str->xbord * offs.x); + int32_t dy = (int32_t) (str->ybord * offs.y); if (dir & 1) { FT_Vector res = { pt.x + dx, pt.y + dy }; @@ -255,8 +255,8 @@ static bool emit_point(StrokerState *str, OutlinePoint pt, static void fix_first_point(StrokerState *str, OutlinePoint pt, Vector offs, int dir) { - int32_t dx = (int32_t)(str->xbord * offs.x); - int32_t dy = (int32_t)(str->ybord * offs.y); + int32_t dx = (int32_t) (str->xbord * offs.x); + int32_t dy = (int32_t) (str->ybord * offs.y); if (dir & 1) { FT_Vector res = { pt.x + dx, pt.y + dy }; @@ -998,7 +998,7 @@ bool outline_stroke(ASS_Outline *result, ASS_Outline *result1, str.eps = eps; str.contour_start = true; - double rel_err = (double)eps / rad; + double rel_err = (double) eps / rad; str.merge_cos = 1 - rel_err; double e = sqrt(2 * rel_err); str.split_cos = 1 + 8 * rel_err - 4 * (1 + rel_err) * e; |