Draw shape mask with antialiasing disabled

We need really B/W bitmap to create a mask so antialising should be disabled
in case.
This commit is contained in:
Artur Wieczorek
2020-08-08 21:52:13 +02:00
parent 884d2ffd32
commit 3d469f3234

View File

@@ -549,6 +549,7 @@ bool wxNonOwnedWindow::DoSetPathShape(const wxGraphicsPath& path)
wxScopedPtr<wxGraphicsContext> context(wxGraphicsContext::Create(dc));
context->SetBrush(*wxWHITE);
context->SetAntialiasMode(wxANTIALIAS_NONE);
context->FillPath(path);
}