X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/513abb883f5b0d02a9458becb2802dc01479bd38..c34e3c7930684745d6aaf4696fc18faa32463d0e:/src/common/matrix.cpp diff --git a/src/common/matrix.cpp b/src/common/matrix.cpp index 05b6a90982..d0d16755a3 100644 --- a/src/common/matrix.cpp +++ b/src/common/matrix.cpp @@ -1,15 +1,14 @@ -///////////////////////////////////////////////////////////////////////////// // Name: matrix.cpp // Purpose: wxTransformMatrix class // Author: Chris Breeze, Julian Smart // Modified by: Klaas Holwerda // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem +// Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "matrix.h" #endif @@ -27,10 +26,10 @@ #include "wx/defs.h" #endif -#include "wxmatrix.h" +#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);