fixed TLWs resizing to invalidate the DFB surface used for painting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -173,6 +173,14 @@ wxIDirectFBSurfacePtr wxWindowDFB::GetDfbSurface()
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user