X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/08bf1d5d9840668ede9c953c6079b8d1db08c8d1..9ac71bef070f553f4ecef2c549dba33b10422f06:/src/common/matrix.cpp diff --git a/src/common/matrix.cpp b/src/common/matrix.cpp index 1785e0a297..5068f5f836 100644 --- a/src/common/matrix.cpp +++ b/src/common/matrix.cpp @@ -1,4 +1,3 @@ -///////////////////////////////////////////////////////////////////////////// // Name: matrix.cpp // Purpose: wxTransformMatrix class // Author: Chris Breeze, Julian Smart @@ -30,7 +29,7 @@ #include "wx/matrix.h" #include -const double pi = 3.1415926535; +static const double pi = 3.1415926535; wxTransformMatrix::wxTransformMatrix(void) { @@ -40,6 +39,7 @@ wxTransformMatrix::wxTransformMatrix(void) } wxTransformMatrix::wxTransformMatrix(const wxTransformMatrix& mat) + : wxObject() { (*this) = mat; } @@ -268,12 +268,12 @@ wxTransformMatrix& wxTransformMatrix::Mirror(bool x, bool y) if (x) { temp.m_matrix[1][1] = -1; - temp.m_isIdentity=false; + temp.m_isIdentity=FALSE; } if (y) { temp.m_matrix[0][0] = -1; - temp.m_isIdentity=false; + temp.m_isIdentity=FALSE; } *this = temp * (*this);