Kaydet (Commit) e881cb41 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

draw polyline and polygon when drawing rect draw command

Change-Id: Ic00d090e0aa85d451a50be52794606546021be38
Reviewed-on: https://gerrit.libreoffice.org/68671
Tested-by: Jenkins
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 9d86d353
......@@ -107,10 +107,17 @@ void munchDrawCommands(std::vector<std::shared_ptr<DrawCommand>> const& rDrawCom
rRectDrawCommand.mnRx, rRectDrawCommand.mnRy);
basegfx::B2DPolygon aB2DPolygon(aPolygon.getB2DPolygon());
rGraphics.SetLineColor(rRectDrawCommand.maStrokeColor);
rGraphics.SetLineColor();
rGraphics.SetFillColor(rRectDrawCommand.maFillColor);
rGraphics.DrawPolyPolygon(basegfx::B2DHomMatrix(),
basegfx::B2DPolyPolygon(aB2DPolygon), 0.0f, nullptr);
rGraphics.SetLineColor(rRectDrawCommand.maStrokeColor);
rGraphics.SetFillColor();
rGraphics.DrawPolyLine(basegfx::B2DHomMatrix(), aB2DPolygon, 0.0f,
basegfx::B2DVector(rRectDrawCommand.mnStrokeWidth,
rRectDrawCommand.mnStrokeWidth),
basegfx::B2DLineJoin::Round, css::drawing::LineCap_ROUND,
0.0f, false, nullptr);
}
break;
case DrawCommandType::CIRCLE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment