]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/toplevel.cpp
1552971 ] Add flag for wxODComboBox::OnDrawItem to indicate selection
[wxWidgets.git] / src / dfb / toplevel.cpp
index b607ecc863cc93b0b33c32a965e986fc8f202652..9166ffffd46f6d4976c79faf8afdbbc6b175ce46 100644 (file)
@@ -214,7 +214,11 @@ void wxTopLevelWindowDFB::DoMoveWindow(int x, int y, int width, int height)
     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();