diff --git a/src/lib/sw_engine/tvgSwRle.cpp b/src/lib/sw_engine/tvgSwRle.cpp index 3991fff1..02870c3d 100644 --- a/src/lib/sw_engine/tvgSwRle.cpp +++ b/src/lib/sw_engine/tvgSwRle.cpp @@ -671,7 +671,8 @@ static bool _genRle(RleWorker& rw) SwRleData* rleRender(const SwShape& sdata, const SwSize& clip) { - constexpr auto RENDER_POOL_SIZE = 16384L; + //Please adjust when you out of cell memory (default: 16384L) + constexpr auto RENDER_POOL_SIZE = 166641L; constexpr auto BAND_SIZE = 40; auto outline = sdata.outline; diff --git a/test/testMergeShapes.cpp b/test/testMergeShapes.cpp index 549ea9ef..b37440b6 100644 --- a/test/testMergeShapes.cpp +++ b/test/testMergeShapes.cpp @@ -20,10 +20,9 @@ void tvgtest() auto shape1 = tvg::ShapeNode::gen(); shape1->appendRect(0, 0, 200, 200, 0); //x, y, w, h, cornerRadius shape1->appendRect(100, 100, 300, 300, 100); //x, y, w, h, cornerRadius - shape1->appendCircle(500, 500, 100, 100); //cx, cy, radiusW, radiusH - //FIXME: eeek! crash! - // shape1->appendCircle(400, 600, 170, 100); //cx, cy, radiusW, radiusH - shape1->fill(255, 0, 0, 255); //r, g, b, a + shape1->appendCircle(400, 400, 100, 100); //cx, cy, radiusW, radiusH + shape1->appendCircle(400, 500, 170, 100); //cx, cy, radiusW, radiusH + shape1->fill(255, 255, 0, 255); //r, g, b, a /* Push the shape into the Canvas drawing list When this shape is into the canvas list, the shape could update & prepare