mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-29 08:19:52 -04:00
Fixing compile error. It seems like these should be fabs instead of abs anyway...
This commit is contained in:
parent
36e02361d1
commit
7b2f725645
1 changed files with 2 additions and 2 deletions
|
@ -352,8 +352,8 @@ void VectorDisplay::endDraw()
|
|||
line_t* lines = (line_t*)alloca(nlines * sizeof(line_t) );
|
||||
|
||||
float t = effectiveThickness();
|
||||
int first_last_same = abs(m_pendingPoints[0].x - m_pendingPoints[m_pendingPoints.size() - 1].x) < 0.1
|
||||
&& abs(m_pendingPoints[0].y - m_pendingPoints[m_pendingPoints.size() - 1].y) < 0.1;
|
||||
int first_last_same = bx::fabsolute(m_pendingPoints[0].x - m_pendingPoints[m_pendingPoints.size() - 1].x) < 0.1
|
||||
&& bx::fabsolute(m_pendingPoints[0].y - m_pendingPoints[m_pendingPoints.size() - 1].y) < 0.1;
|
||||
|
||||
// compute basics
|
||||
for (size_t i = 1; i < m_pendingPoints.size(); i++)
|
||||
|
|
Loading…
Add table
Reference in a new issue