X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cce4a2cec8d491b2120eb02a03bcc1fdf8b8c88e..365271b573e3d0ab7512471358f98a589f18c104:/src/common/dcgraph.cpp diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 613c6a1bcf..993cccf3db 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -200,6 +200,12 @@ void wxGCDC::DoSetClippingRegionAsRegion( const wxRegion ®ion ) void wxGCDC::DestroyClippingRegion() { m_graphicContext->ResetClip(); + // currently the clip eg of a window extends to the area between the scrollbars + // so we must explicitely make sure it only covers the area we want it to draw + int width, height ; + GetSize( &width , &height ) ; + m_graphicContext->Clip( DeviceToLogicalX(0) , DeviceToLogicalY(0) , width, height ); + m_graphicContext->SetPen( m_pen ); m_graphicContext->SetBrush( m_brush );