X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/84e455807ee62925c98e18d2848954125b128018..739c5499fcab1c165b8dd0591c9fd9e2329b3cf9:/src/dfb/nonownedwnd.cpp diff --git a/src/dfb/nonownedwnd.cpp b/src/dfb/nonownedwnd.cpp index d77669378c..2c4809aee1 100644 --- a/src/dfb/nonownedwnd.cpp +++ b/src/dfb/nonownedwnd.cpp @@ -153,7 +153,7 @@ bool wxNonOwnedWindow::Create(wxWindow *parent, wxNonOwnedWindow::~wxNonOwnedWindow() { - m_isBeingDeleted = true; + SendDestroyEvent(); // destroy all children before we destroy the underlying DirectFB window, // so that if any of them does something with the TLW, it will still work: @@ -301,16 +301,12 @@ void wxNonOwnedWindow::HandleQueuedPaintRequests() // blit the entire back buffer to front soon m_isPainting = true; -#ifdef __WXDEBUG__ int requestsCount = 0; -#endif wxRect request; while ( m_toPaint->GetNext(request) ) { -#ifdef __WXDEBUG__ requestsCount++; -#endif wxRect clipped(request); clipped.Intersect(winRect); if ( clipped.IsEmpty() )