summaryrefslogtreecommitdiff
path: root/vcl/opengl/RenderList.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/opengl/RenderList.cxx')
-rw-r--r--vcl/opengl/RenderList.cxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/vcl/opengl/RenderList.cxx b/vcl/opengl/RenderList.cxx
index 5c59002f95ff..5f99513bba17 100644
--- a/vcl/opengl/RenderList.cxx
+++ b/vcl/opengl/RenderList.cxx
@@ -308,23 +308,16 @@ void RenderList::addDrawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon,
topX1, topY, topX2, topY,
bottomX1, bottomY, bottomX2, bottomY,
nFillColor, fTransparency);
- if (bUseAA)
- {
- vcl::LineBuilder aBuilder(rLineRenderParameter.maVertices, rLineRenderParameter.maIndices,
- nFillColor, fTransparency, 1.0f, true);
- aBuilder.appendLine(glm::vec2(topX1, topY), glm::vec2(topX2, topY));
- aBuilder.appendLine(glm::vec2(topX2, topY), glm::vec2(bottomX2, bottomY));
- aBuilder.appendLine(glm::vec2(bottomX2, bottomY), glm::vec2(bottomX1, bottomY));
- aBuilder.appendLine(glm::vec2(bottomX1, bottomY), glm::vec2(topX1, topY));
- }
}
}
}
- if (nLineColor != SALCOLOR_NONE && nLineColor != nFillColor)
+ if (nLineColor != SALCOLOR_NONE || bUseAA)
{
+ SalColor nColor = (nLineColor == SALCOLOR_NONE) ? nFillColor : nLineColor;
+
vcl::LineBuilder aBuilder(rLineRenderParameter.maVertices, rLineRenderParameter.maIndices,
- nLineColor, fTransparency, 1.0f, bUseAA);
+ nColor, fTransparency, 1.0f, bUseAA);
for (const basegfx::B2DPolygon& rPolygon : rPolyPolygon)
{