Skip to content

Commit 53d30ed

Browse files
committed
Antialias for lines in Direct2DContext.
1 parent 3f1e13e commit 53d30ed

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/WindowsAppSupport/WAS_Direct2DContextBase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ bool Direct2DContextBase::NeedToDraw (ItemPreviewMode)
161161

162162
void Direct2DContextBase::DrawLine (const NUIE::Point& beg, const NUIE::Point& end, const NUIE::Pen& pen)
163163
{
164+
Direct2DAntialiasGuard antialiasGuard (renderTarget, D2D1_ANTIALIAS_MODE_PER_PRIMITIVE);
164165
ID2D1SolidColorBrush* d2Brush = CreateBrush (renderTarget, pen.GetColor ());
165166
renderTarget->DrawLine (CreatePoint (beg), CreatePoint (end), d2Brush, GetPenThickness (pen));
166167
SafeRelease (&d2Brush);

0 commit comments

Comments
 (0)