git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57154
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int w = bitmap.GetWidth();
int h = bitmap.GetHeight();
- if (m_window && m_window->GetLayoutDirection() == wxLayout_RightToLeft)
- xx -= w;
-
CalcBoundingBox( x, y );
CalcBoundingBox( x + w, y + h );
int ww = XLOG2DEVREL(w);
int hh = YLOG2DEVREL(h);
+ if (m_window && m_window->GetLayoutDirection() == wxLayout_RightToLeft)
+ xx -= ww;
+
if (IsOutsideOfClippingRegion( xx,yy,ww,hh ))
return;