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