summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qtriangulator.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-01-26 16:00:02 +0100
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-01-26 16:01:59 +0100
commitc06c254cf208840f14c9e562cae976f1a61f0879 (patch)
treeac67ae8366a0dfa869a180af354b834aa93765e0 /src/opengl/gl2paintengineex/qtriangulator.cpp
parent2b13dc93d406040d5f62ca57b44969b484370f87 (diff)
Fixed compile of QTriangulator on Solaris.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/gl2paintengineex/qtriangulator.cpp')
-rw-r--r--src/opengl/gl2paintengineex/qtriangulator.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/opengl/gl2paintengineex/qtriangulator.cpp b/src/opengl/gl2paintengineex/qtriangulator.cpp
index b60e10d90a..115f31b23b 100644
--- a/src/opengl/gl2paintengineex/qtriangulator.cpp
+++ b/src/opengl/gl2paintengineex/qtriangulator.cpp
@@ -361,14 +361,14 @@ struct QIntersectionPoint
static inline QIntersectionPoint qIntersectionPoint(const QPodPoint &point)
{
- // m_upperLeft = point, m_xOffset = 0/1, m_yOffset = 0/1.
- QIntersectionPoint p = {point, {0, 1}, {0, 1}};
+ // upperLeft = point, xOffset = 0/1, yOffset = 0/1.
+ QIntersectionPoint p = {{point.x, point.y}, {0, 1}, {0, 1}};
return p;
}
static inline QIntersectionPoint qIntersectionPoint(int x, int y)
{
- // m_upperLeft = (x, y), m_xOffset = 0/1, m_yOffset = 0/1.
+ // upperLeft = (x, y), xOffset = 0/1, yOffset = 0/1.
QIntersectionPoint p = {{x, y}, {0, 1}, {0, 1}};
return p;
}
@@ -1988,8 +1988,10 @@ void QTriangulator::ComplexToSimple::fillPriorityQueue()
Q_ASSERT(m_edges.at(i).pointingUp == (m_parent->m_vertices.at(m_edges.at(i).to) < m_parent->m_vertices.at(m_edges.at(i).from)));
// Ignore zero-length edges.
if (m_parent->m_vertices.at(m_edges.at(i).to) != m_parent->m_vertices.at(m_edges.at(i).from)) {
- Event upperEvent = {m_parent->m_vertices.at(m_edges.at(i).upper()), Event::Upper, i};
- Event lowerEvent = {m_parent->m_vertices.at(m_edges.at(i).lower()), Event::Lower, i};
+ QPodPoint upper = m_parent->m_vertices.at(m_edges.at(i).upper());
+ QPodPoint lower = m_parent->m_vertices.at(m_edges.at(i).lower());
+ Event upperEvent = {{upper.x, upper.y}, Event::Upper, i};
+ Event lowerEvent = {{lower.x, lower.y}, Event::Lower, i};
m_events.add(upperEvent);
m_events.add(lowerEvent);
}