keeping the OSX specific use of origin for non-native borders

fixes #19108
This commit is contained in:
Stefan Csomor
2021-03-20 22:09:31 +01:00
parent 362012ab9c
commit d1c0d3b18c
4 changed files with 21 additions and 5 deletions

View File

@@ -397,7 +397,11 @@ void wxGCDCImpl::DestroyClippingRegion()
// so we must explicitly make sure it only covers the area we want it to draw
int width, height ;
GetOwner()->GetSize( &width , &height ) ;
m_graphicContext->Clip( DeviceToLogicalX(0) , DeviceToLogicalY(0) , DeviceToLogicalXRel(width), DeviceToLogicalYRel(height) );
wxPoint origin;
#ifdef __WXOSX__
origin = OSXGetOrigin();
#endif
m_graphicContext->Clip( DeviceToLogicalX(origin.x) , DeviceToLogicalY(origin.y) , DeviceToLogicalXRel(width), DeviceToLogicalYRel(height) );
m_graphicContext->SetPen( m_pen );
m_graphicContext->SetBrush( m_brush );