summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpointarray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qpointarray.cpp')
-rw-r--r--src/kernel/qpointarray.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/qpointarray.cpp b/src/kernel/qpointarray.cpp
index 3258a441..6a9d3748 100644
--- a/src/kernel/qpointarray.cpp
+++ b/src/kernel/qpointarray.cpp
@@ -955,8 +955,8 @@ TQPointArray TQPointArray::cubicBezier() const
m -= 2;
while ( m-- ) {
- pd->rx() = (TQCOORD)qRound( ((ax * t + bx) * t + cx) * t + x0 );
- pd->ry() = (TQCOORD)qRound( ((ay * t + by) * t + cy) * t + y0 );
+ pd->rx() = (TQCOORD)tqRound( ((ax * t + bx) * t + cx) * t + x0 );
+ pd->ry() = (TQCOORD)tqRound( ((ay * t + by) * t + cy) * t + y0 );
pd++;
t += dt;
}
@@ -988,8 +988,8 @@ TQPointArray TQPointArray::cubicBezier() const
TQPointArray pa((len/2)+1); // one extra point for last point on line
int j=0;
for (i=0; j<len; i++) {
- int x = qRound(p[j++]);
- int y = qRound(p[j++]);
+ int x = tqRound(p[j++]);
+ int y = tqRound(p[j++]);
pa[i] = TQPoint(x,y);
}
// add last pt on the line, which will be at the last control pt