commit | 2accbdc0b6cbee4b6d9f581d8a890601881506fb | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 25 14:40:04 2023 -0700 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 25 14:40:04 2023 -0700 |
tree | cf312e6d8aeae37a80519e43ba779761a76a055c | |
parent | a4420479a8f2d4d9b11039f5b7862f7f5f684db1 [diff] |
[paint] Minor skew
diff --git a/src/hb-paint.hh b/src/hb-paint.hh index 007e899..f7b71aa 100644 --- a/src/hb-paint.hh +++ b/src/hb-paint.hh
@@ -216,8 +216,8 @@ if (!sx && !sy) return false; - float x = -tanf (sx * (float) M_PI); - float y = +tanf (sy * (float) M_PI); + float x = tanf (-sx * (float) M_PI); + float y = tanf (+sy * (float) M_PI); push_transform (paint_data, 1.f, y, x, 1.f, 0.f, 0.f); return true; }