mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[font] Fix abs of int value
This commit is contained in:
1 parent
8f413a533c
commit
bc15ebdea1
1 file changed
+2
-2
+2
-2
@@ -781,8 +781,8 @@ struct hb_font_t
|
||||
bool y_neg = y_scale < 0;
|
||||
y_mult = (y_neg ? -((int64_t) -y_scale << 16) : ((int64_t) y_scale << 16)) / upem;
|
||||
|
||||
x_strength = roundf (fabsf (x_scale) * x_embolden);
|
||||
y_strength = roundf (fabsf (y_scale) * y_embolden);
|
||||
x_strength = roundf (abs (x_scale) * x_embolden);
|
||||
y_strength = roundf (abs (y_scale) * y_embolden);
|
||||
|
||||
slant_xy = y_scale ? slant * x_scale / y_scale : 0.f;
|
||||
|
||||
|
||||
Reference in new issue
Block a user