summaryrefslogtreecommitdiff
path: root/src/bezier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bezier.cpp')
-rw-r--r--src/bezier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bezier.cpp b/src/bezier.cpp
index 420cae1..6bb1541 100644
--- a/src/bezier.cpp
+++ b/src/bezier.cpp
@@ -171,13 +171,13 @@ static void Bezier_CubicCalcPointsCasteljauStep(void *Data, uint32 Size, uint32
}
}
-uint32 Bezier_CubicCalcPoints(v2 p1, v2 p2, v2 p3, v2 p4, void *Data, uint32 Size)
+void * Bezier_CubicCalcPoints(v2 p1, v2 p2, v2 p3, v2 p4, void *Data, uint32 Size)
{
uint32 Increment = 0;
real32 tess_tol = TESS_TOL;
void *Pointer = Data;
Bezier_CubicCalcPointsCasteljauStep(Pointer, Size, &Increment, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0);
- return Increment;
+ return ((uint8 *)Data + (Increment * Size));
}