Added wxRegion::Offset(x,y)
Go to plan B: wxWindow::Scroll() now moved the m_updateRegion for later processing. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4091,6 +4091,16 @@ void wxWindowGTK::ScrollWindow( int dx, int dy, const wxRect* WXUNUSED(rect) )
|
||||
// No scrolling requested.
|
||||
if ((dx == 0) && (dy == 0)) return;
|
||||
|
||||
if (!m_updateRegion.IsEmpty())
|
||||
{
|
||||
m_updateRegion.Offset( dx, dy );
|
||||
|
||||
int cw = 0;
|
||||
int ch = 0;
|
||||
GetClientSize( &cw, &ch );
|
||||
m_updateRegion.Intersect( 0, 0, cw, ch );
|
||||
}
|
||||
|
||||
#if 1
|
||||
|
||||
m_clipPaintRegion = TRUE;
|
||||
|
Reference in New Issue
Block a user