X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce83033f35c6af7c7502b59d48f09a310756cd28..122d1d563a3b2c797e00dd1032d178735e84f300:/src/gtk1/dc.cpp?ds=inline diff --git a/src/gtk1/dc.cpp b/src/gtk1/dc.cpp index 46ea5626c4..80d08c5b01 100644 --- a/src/gtk1/dc.cpp +++ b/src/gtk1/dc.cpp @@ -3,31 +3,18 @@ // Purpose: // Author: Robert Roebling // RCS-ID: $Id$ -// Copyright: (c) 1998 Robert Roebling, Markus Holzem +// Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - -#ifdef __GNUG__ - #pragma implementation "dc.h" -#endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" #include "wx/dc.h" #include #include -//----------------------------------------------------------------------------- -// constants -//----------------------------------------------------------------------------- - -#define mm2inches 0.0393700787402 -#define inches2mm 25.4 -#define mm2twips 56.6929133859 -#define twips2mm 0.0176388888889 -#define mm2pt 2.83464566929 -#define pt2mm 0.352777777778 - //----------------------------------------------------------------------------- // wxDC //----------------------------------------------------------------------------- @@ -62,11 +49,6 @@ void wxDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord hei m_clipY2 = y + height; } -void wxDC::DestroyClippingRegion() -{ - m_clipping = FALSE; -} - // --------------------------------------------------------------------------- // get DC capabilities // --------------------------------------------------------------------------- @@ -119,7 +101,7 @@ void wxDC::SetMapMode( int mode ) break; } m_mappingMode = mode; - + /* we don't do this mega optimisation if (mode != wxMM_TEXT) {