1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix for edgetable rendering.

This commit is contained in:
jules 2013-09-24 23:02:28 +01:00
parent eed99767d0
commit 1c8a03c05e

View file

@ -561,8 +561,25 @@ void EdgeTable::intersectWithEdgeTableLine (const int y, const int* const otherL
if (destTotal >= maxEdgesPerLine)
{
srcLine[0] = destTotal;
remapTableForNumEdges (jmax (256, destTotal * 2));
srcLine = table + lineStrideElements * y;
if (isUsingTempSpace)
{
const size_t tempSize = (size_t) (srcNum1 * 2 * sizeof (int));
int* const oldTemp = static_cast<int*> (alloca (tempSize));
memcpy (oldTemp, src1, tempSize);
remapTableForNumEdges (jmax (256, destTotal * 2));
srcLine = table + lineStrideElements * y;
int* const newTemp = table + lineStrideElements * bounds.getHeight();
memcpy (newTemp, oldTemp, tempSize);
src1 = newTemp;
}
else
{
remapTableForNumEdges (jmax (256, destTotal * 2));
srcLine = table + lineStrideElements * y;
}
}
++destTotal;