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;