git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41297
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxSize cursize = GetSize();
if ( cursize.x != width || cursize.y != height )
{
+ // changing window's size changes its surface:
+ InvalidateDfbSurface();
+
m_dfbwin->Resize(width, height);
+
// we must repaint the window after it changed size:
if ( IsShown() )
DoRefreshWindow();
void wxWindowDFB::InvalidateDfbSurface()
{
m_surface = NULL;
+
+ // surfaces of the children are subsurfaces of this window's surface,
+ // so they must be invalidated as well:
+ wxWindowList& children = GetChildren();
+ for ( wxWindowList::iterator i = children.begin(); i != children.end(); ++i )
+ {
+ (*i)->InvalidateDfbSurface();
+ }
}
// ---------------------------------------------------------------------------