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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user