mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 11:36:25 +00:00
portability: fixing windows warnings
atan2->atan2f
This commit is contained in:
parent
74a99867df
commit
18bf321d2c
2 changed files with 4 additions and 4 deletions
|
@ -58,8 +58,8 @@
|
|||
y = yStart;
|
||||
|
||||
while (y < yEnd) {
|
||||
x1 = _xa;
|
||||
x2 = _xb;
|
||||
x1 = (int32_t)_xa;
|
||||
x2 = (int32_t)_xb;
|
||||
|
||||
if (!region) {
|
||||
minx = INT32_MAX;
|
||||
|
@ -160,4 +160,4 @@ next:
|
|||
xb = _xb;
|
||||
ua = _ua;
|
||||
va = _va;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ static inline bool mathEqual(float a, float b)
|
|||
|
||||
static inline bool mathRightAngle(const Matrix* m)
|
||||
{
|
||||
auto radian = fabsf(atan2(m->e21, m->e11));
|
||||
auto radian = fabsf(atan2f(m->e21, m->e11));
|
||||
if (radian < FLT_EPSILON || mathEqual(radian, float(M_PI_2)) || mathEqual(radian, float(M_PI))) return true;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue