Clear larger area in wxGCDC::Clear().
Clearing a rectangle of size 32000 was not always enough to clear the entire DC, so use INT_MAX instead -- this is the best we can do with the current approach. Closes #13445. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d8c0d15d32
commit
12ca260575
@ -38,6 +38,8 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <limits.h> // for INT_MAX
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// constants
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -1048,7 +1050,7 @@ void wxGCDCImpl::Clear(void)
|
||||
m_graphicContext->SetPen( p );
|
||||
wxCompositionMode formerMode = m_graphicContext->GetCompositionMode();
|
||||
m_graphicContext->SetCompositionMode(wxCOMPOSITION_SOURCE);
|
||||
DoDrawRectangle( 0, 0, 32000 , 32000 );
|
||||
DoDrawRectangle( 0, 0, INT_MAX , INT_MAX );
|
||||
m_graphicContext->SetCompositionMode(formerMode);
|
||||
m_graphicContext->SetPen( m_pen );
|
||||
m_graphicContext->SetBrush( m_brush );
|
||||
|
Loading…
Reference in New Issue
Block a user