IsExposed() needs to reverse the direction in RTL.

I actually wonder if not the calling code is wrong,
    but this fixes wxListCtrl and wxTreeCtrl for the
    time being.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-10-09 20:32:12 +00:00
parent 8e9ec7239f
commit 0e21cf4902

View File

@ -3822,11 +3822,9 @@ bool wxWindowGTK::DoIsExposed( int x, int y ) const
bool wxWindowGTK::DoIsExposed( int x, int y, int w, int h ) const
{
#if 0
if (GetLayoutDirection() == wxLayout_RightToLeft)
return m_updateRegion.Contains(x-w, y, w, h) != wxOutRegion;
else
#endif
return m_updateRegion.Contains(x, y, w, h) != wxOutRegion;
}