release update region as soon as we finished painting the window instead of keeping it indefinitely (bug 1819635) [backport from trunk]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-10-24 23:27:57 +00:00
parent d3e7370f8a
commit 6dd14c57a4

View File

@@ -4528,6 +4528,10 @@ bool wxWindowMSW::HandlePaint()
eventNc.SetEventObject(this); eventNc.SetEventObject(this);
GetEventHandler()->ProcessEvent(eventNc); GetEventHandler()->ProcessEvent(eventNc);
// don't keep an HRGN we don't need any longer (GetUpdateRegion() can only
// be called from inside the event handlers called above)
m_updateRegion.Clear();
return processed; return processed;
} }