@@ -133,13 +133,15 @@ void GdiplusOffscreenContext::DrawLine (const NUIE::Point& beg, const NUIE::Poin
133133{
134134 const NUIE::Color& color = pen.GetColor ();
135135 Gdiplus::Pen gdiPen (Gdiplus::Color (color.GetR (), color.GetG (), color.GetB ()), (Gdiplus::REAL) pen.GetThickness ());
136+ gdiPen.SetLineCap (Gdiplus::LineCap::LineCapRound, Gdiplus::LineCap::LineCapRound, Gdiplus::DashCap::DashCapRound);
136137 graphics->DrawLine (&gdiPen, CreatePoint (beg), CreatePoint (end));
137138}
138139
139140void GdiplusOffscreenContext::DrawBezier (const NUIE::Point& p1, const NUIE::Point& p2, const NUIE::Point& p3, const NUIE::Point& p4, const NUIE::Pen& pen)
140141{
141142 const NUIE::Color& color = pen.GetColor ();
142143 Gdiplus::Pen gdiPen (Gdiplus::Color (color.GetR (), color.GetG (), color.GetB ()), (Gdiplus::REAL) pen.GetThickness ());
144+ gdiPen.SetLineCap (Gdiplus::LineCap::LineCapRound, Gdiplus::LineCap::LineCapRound, Gdiplus::DashCap::DashCapRound);
143145 graphics->DrawBezier (&gdiPen, CreatePoint (p1), CreatePoint (p2), CreatePoint (p3), CreatePoint (p4));
144146}
145147
@@ -148,6 +150,7 @@ void GdiplusOffscreenContext::DrawRect (const NUIE::Rect& rect, const NUIE::Pen&
148150 DisableAntialiasGuard antialiasGuard (graphics.get ());
149151 const NUIE::Color& color = pen.GetColor ();
150152 Gdiplus::Pen gdiPen (Gdiplus::Color (color.GetR (), color.GetG (), color.GetB ()), (Gdiplus::REAL) pen.GetThickness ());
153+ gdiPen.SetLineCap (Gdiplus::LineCap::LineCapRound, Gdiplus::LineCap::LineCapRound, Gdiplus::DashCap::DashCapRound);
151154 Gdiplus::Rect gdiRect = CreateRect (rect);
152155 graphics->DrawRectangle (&gdiPen, gdiRect);
153156}
0 commit comments