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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user