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:
parent
8e9ec7239f
commit
0e21cf4902
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user