fix for drawing in the 'grox box' between two scrollbars

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-01-26 21:47:46 +00:00
parent dedf5d9f66
commit cb6e26b88e

View File

@@ -200,6 +200,12 @@ void wxGCDC::DoSetClippingRegionAsRegion( const wxRegion &region )
void wxGCDC::DestroyClippingRegion() void wxGCDC::DestroyClippingRegion()
{ {
m_graphicContext->ResetClip(); 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->SetPen( m_pen );
m_graphicContext->SetBrush( m_brush ); m_graphicContext->SetBrush( m_brush );