Fix wxGCDC::Clear (wxOSX)

If underlying graphics context is rotated then drawing a rectangle with origin at (0,0) doesn't cover all the drawing area. To draw over entire area we need to get extents of the actual clipping region (with applied all transformations) and use it as coordinates of the drawn rectangle.
Solution for wxMSW and wxGTK was implemented in 12eaa61212eaa61930.

See #17636.
This commit is contained in:
Artur Wieczorek
2017-07-02 13:46:18 +02:00
parent f311807112
commit 214ed20697
2 changed files with 2 additions and 24 deletions

View File

@@ -1906,8 +1906,6 @@ void wxMacCoreGraphicsContext::ResetClip()
void wxMacCoreGraphicsContext::GetClipBox(wxDouble* x, wxDouble* y, wxDouble* w, wxDouble* h)
{
// This function is not yet tested.
// TODO: Do the tests.
CGRect r;
if ( m_cgContext )