wxDFB: fix rendering artefacts when scrolling wxScrolledWindow that contains other widgets

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-01-22 15:10:26 +00:00
parent 42b0d8b96d
commit c04c7a3d0a
6 changed files with 70 additions and 11 deletions

View File

@@ -58,6 +58,11 @@ static wxRect GetUncoveredWindowArea(wxWindow *win)
// coordinates; this will remove parts of 'r' that are outside of the
// parent's area:
wxRect rp(GetUncoveredWindowArea(parent));
// normal windows cannot extend out of its parent's client area:
if ( !win->CanBeOutsideClientArea() )
rp.Intersect(parent->GetClientRect());
rp.Offset(-win->GetPosition());
rp.Offset(-parent->GetClientAreaOrigin());
r.Intersect(rp);