From 863895d107de93854969dbaa3bd023dc53a2bbab Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 10 Nov 2013 17:43:02 +0000 Subject: [PATCH] Minor cleanups. --- modules/juce_graphics/geometry/juce_EdgeTable.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/juce_graphics/geometry/juce_EdgeTable.cpp b/modules/juce_graphics/geometry/juce_EdgeTable.cpp index a0abd3dcfe..73ee1c3c2b 100644 --- a/modules/juce_graphics/geometry/juce_EdgeTable.cpp +++ b/modules/juce_graphics/geometry/juce_EdgeTable.cpp @@ -445,12 +445,12 @@ void EdgeTable::addEdgePointPair (int x1, int x2, int y, int winding) line = table + lineStrideElements * y; } - line[0] += 2; - int n = numPoints << 1; - line [n + 1] = x1; - line [n + 2] = winding; - line [n + 3] = x2; - line [n + 4] = -winding; + line[0] = numPoints + 2; + line += numPoints << 1; + line[1] = x1; + line[2] = winding; + line[3] = x2; + line[4] = -winding; } void EdgeTable::translate (float dx, const int dy) noexcept