aboutsummaryrefslogtreecommitdiff
path: root/ports/libass/ConstantValues.patch
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2020-12-24 06:09:00 +0800
committerGitHub <noreply@github.com>2020-12-23 14:09:00 -0800
commitcc4475d492bd1147f18e19f2c80b083a56391e18 (patch)
tree501bf9c82f2917bec9ceee555537492e99dbe3fa /ports/libass/ConstantValues.patch
parentc54abfafbe0051075952c507da1f1ec234875e05 (diff)
downloadvcpkg-cc4475d492bd1147f18e19f2c80b083a56391e18.tar.gz
vcpkg-cc4475d492bd1147f18e19f2c80b083a56391e18.zip
[libass] update to 0.15.0 (#15263)
Diffstat (limited to 'ports/libass/ConstantValues.patch')
-rw-r--r--ports/libass/ConstantValues.patch65
1 files changed, 22 insertions, 43 deletions
diff --git a/ports/libass/ConstantValues.patch b/ports/libass/ConstantValues.patch
index d357032d7..e666b8466 100644
--- a/ports/libass/ConstantValues.patch
+++ b/ports/libass/ConstantValues.patch
@@ -1,43 +1,22 @@
----
- libass/ass_outline.c | 4 ++--
- libass/ass_render.c | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/libass/ass_outline.c b/libass/ass_outline.c
-index 1b9afe9..527403e 100644
---- a/libass/ass_outline.c
-+++ b/libass/ass_outline.c
-@@ -518,7 +518,7 @@ static bool draw_arc(StrokerState *str, ASS_Vector pt,
- ASS_DVector normal0, ASS_DVector normal1, double c, int dir)
- {
- const int max_subdiv = 15;
-- double mul[max_subdiv + 1];
-+ double mul[16];
-
- ASS_DVector center;
- bool small_angle = true;
-@@ -554,7 +554,7 @@ static bool draw_arc(StrokerState *str, ASS_Vector pt,
- static bool draw_circle(StrokerState *str, ASS_Vector pt, int dir)
- {
- const int max_subdiv = 15;
-- double mul[max_subdiv + 1], c = 0;
-+ double mul[16], c = 0;
-
- int pos = max_subdiv;
- while (c < str->split_cos && pos) {
-diff --git a/libass/ass_render.c b/libass/ass_render.c
-index 69c4439..f6fa85c 100644
---- a/libass/ass_render.c
-+++ b/libass/ass_render.c
-@@ -1235,7 +1235,7 @@ get_bitmap_glyph(ASS_Renderer *render_priv, GlyphInfo *info)
- }
-
- const int n_outlines = 3;
-- ASS_Outline outline[n_outlines];
-+ ASS_Outline outline[3];
- outline_copy(&outline[0], info->outline);
- outline_copy(&outline[1], info->border[0]);
- outline_copy(&outline[2], info->border[1]);
---
-2.18.0.windows.1
-
+diff --git a/libass/ass_outline.c b/libass/ass_outline.c
+index ae5c06a..2173508 100644
+--- a/libass/ass_outline.c
++++ b/libass/ass_outline.c
+@@ -613,7 +613,7 @@ static bool draw_arc(StrokerState *str, ASS_Vector pt,
+ ASS_DVector normal0, ASS_DVector normal1, double c, int dir)
+ {
+ enum { max_subdiv = 15 };
+- double mul[max_subdiv + 1];
++ double mul[16];
+
+ ASS_DVector center;
+ bool small_angle = true;
+@@ -649,7 +649,7 @@ static bool draw_arc(StrokerState *str, ASS_Vector pt,
+ static bool draw_circle(StrokerState *str, ASS_Vector pt, int dir)
+ {
+ enum { max_subdiv = 15 };
+- double mul[max_subdiv + 1], c = 0;
++ double mul[16], c = 0;
+
+ int pos = max_subdiv;
+ while (c < str->split_cos && pos) {