X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2aa719c68c2aa03e9608dc47f0278057ff3c545..bff4ec6360d28f3309e5199685950b43ab5e079a:/include/wx/geometry.h diff --git a/include/wx/geometry.h b/include/wx/geometry.h index d619b6cafa..40ae634205 100644 --- a/include/wx/geometry.h +++ b/include/wx/geometry.h @@ -31,8 +31,7 @@ #ifdef __WXMSW__ #define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c ) #elif defined( __WXMAC__ ) - #include "Math64.h" - #define wxMulDivInt32( a , b , c ) S32Set( S64Div( S64Multiply( S64Set(a) , S64Set(b) ) , S64Set(c) ) ) + #define wxMulDivInt32( a , b , c ) ( (wxInt32) ( ( (wxInt64)(a) * (wxInt64)(b) ) / (wxInt64)(c) ) ) #else #define wxMulDivInt32( a , b , c ) ((wxInt32)((a)*(((wxDouble)b)/((wxDouble)c)))) #endif @@ -99,16 +98,16 @@ public : wxInt32 m_y; }; -wxPoint2DInt operator+(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); -wxPoint2DInt operator-(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); -wxPoint2DInt operator*(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); -wxPoint2DInt operator*(wxInt32 n , const wxPoint2DInt& pt); -wxPoint2DInt operator*(wxInt32 n , const wxPoint2DInt& pt); -wxPoint2DInt operator*(const wxPoint2DInt& pt , wxInt32 n); -wxPoint2DInt operator*(const wxPoint2DInt& pt , wxInt32 n); -wxPoint2DInt operator/(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); -wxPoint2DInt operator/(const wxPoint2DInt& pt , wxInt32 n); -wxPoint2DInt operator/(const wxPoint2DInt& pt , wxInt32 n); +inline wxPoint2DInt operator+(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); +inline wxPoint2DInt operator-(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); +inline wxPoint2DInt operator*(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); +inline wxPoint2DInt operator*(wxInt32 n , const wxPoint2DInt& pt); +inline wxPoint2DInt operator*(wxInt32 n , const wxPoint2DInt& pt); +inline wxPoint2DInt operator*(const wxPoint2DInt& pt , wxInt32 n); +inline wxPoint2DInt operator*(const wxPoint2DInt& pt , wxInt32 n); +inline wxPoint2DInt operator/(const wxPoint2DInt& pt1 , const wxPoint2DInt& pt2); +inline wxPoint2DInt operator/(const wxPoint2DInt& pt , wxInt32 n); +inline wxPoint2DInt operator/(const wxPoint2DInt& pt , wxInt32 n); inline wxPoint2DInt::wxPoint2DInt() {