diff options
author | Dr.Smile <vabnick@gmail.com> | 2017-08-02 04:34:28 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2017-09-17 04:07:20 +0300 |
commit | bced14d1a6b83faca46ac3259f5cb77adc101e30 (patch) | |
tree | 3f73fef2ed2136bc035b0b34779365aa022c596f /libass/ass_drawing.c | |
parent | f159a8cf55c8b3f2193ab20159a255310c7c5ca9 (diff) | |
download | libass-bced14d1a6b83faca46ac3259f5cb77adc101e30.tar.bz2 libass-bced14d1a6b83faca46ac3259f5cb77adc101e30.tar.xz |
Switch to native coordinate system for outlines
Diffstat (limited to 'libass/ass_drawing.c')
-rw-r--r-- | libass/ass_drawing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_drawing.c b/libass/ass_drawing.c index d235517..4deb19a 100644 --- a/libass/ass_drawing.c +++ b/libass/ass_drawing.c @@ -67,7 +67,7 @@ static void drawing_finish(ASS_Drawing *drawing, bool raw_mode) // Place it onto the baseline for (size_t i = 0; i < ol->n_points; i++) - ol->points[i].y += drawing->asc; + ol->points[i].y -= drawing->asc; } /* @@ -193,7 +193,7 @@ static inline void update_cbox(ASS_Drawing *drawing, ASS_Vector *point) static inline void translate_point(ASS_Drawing *drawing, ASS_Vector *point) { point->x = drawing->point_scale_x * point->x; - point->y = drawing->point_scale_y * -point->y; + point->y = drawing->point_scale_y * point->y; update_cbox(drawing, point); } |