Implement dc mirroring for RTL.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2242,7 +2242,12 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
||||
|
||||
if ( image != NO_IMAGE )
|
||||
{
|
||||
dc.SetClippingRegion( item->GetX(), item->GetY(), image_w-2, total_h );
|
||||
#ifdef __WXGTK__
|
||||
if (GetLayoutDirection() == wxLayout_RightToLeft)
|
||||
dc.SetClippingRegion( item->GetX()+image_w-2, item->GetY(), image_w-2, total_h );
|
||||
else
|
||||
#endif
|
||||
dc.SetClippingRegion( item->GetX(), item->GetY(), image_w-2, total_h );
|
||||
m_imageListNormal->Draw( image, dc,
|
||||
item->GetX(),
|
||||
item->GetY() +((total_h > image_h)?((total_h-image_h)/2):0),
|
||||
|
Reference in New Issue
Block a user