[paint] Minor skew

This commit is contained in:
Behdad Esfahbod 2023-01-25 14:40:04 -07:00
parent a4420479a8
commit 2accbdc0b6
1 changed files with 2 additions and 2 deletions

View File

@ -216,8 +216,8 @@ struct hb_paint_funcs_t
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;
}