mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb/CSS: Fix implicit narrowing cast in interpolate_rotate
The changes introduced in 484a09d6a2
broke the Windows LibWeb build, so this fixes that
This commit is contained in:
parent
6ddbb70051
commit
77d9508618
Notes:
github-actions[bot]
2025-07-22 19:22:27 +00:00
Author: https://github.com/ayeteadoe
Commit: 77d9508618
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5567
Reviewed-by: https://github.com/Lubrsi
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ static RefPtr<CSSStyleValue const> interpolate_rotate(DOM::Element& element, Cal
|
|||
auto from_axis_angle = [](FloatVector3 const& axis, float angle) -> FloatVector4 {
|
||||
auto normalized = axis.normalized();
|
||||
auto half_angle = angle / 2.0f;
|
||||
auto sin_half_angle = sin(half_angle);
|
||||
auto sin_half_angle = sinf(half_angle);
|
||||
FloatVector4 result { normalized.x() * sin_half_angle, normalized.y() * sin_half_angle, normalized.z() * sin_half_angle, cosf(half_angle) };
|
||||
return result;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue