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:
parent
eed99767d0
commit
1c8a03c05e
1 changed files with 19 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue