X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ab8b6ddfa26fbabeadad36966a21a42fe649b1..a007b626a76dfab3b5a83565bb7eae1cae57e18f:/src/gtk/dc.cpp diff --git a/src/gtk/dc.cpp b/src/gtk/dc.cpp index be84d8994e..9b2bcee17f 100644 --- a/src/gtk/dc.cpp +++ b/src/gtk/dc.cpp @@ -12,13 +12,18 @@ #include "wx/dc.h" + //----------------------------------------------------------------------------- // wxDC //----------------------------------------------------------------------------- -IMPLEMENT_ABSTRACT_CLASS(wxDC, wxDCBase) +#if wxUSE_NEW_DC +IMPLEMENT_ABSTRACT_CLASS(wxGTKImplDC, wxDC) +#else +IMPLEMENT_ABSTRACT_CLASS(wxGTKImplDC, wxDCBase) +#endif -wxDC::wxDC() +wxGTKImplDC::wxGTKImplDC() { m_ok = FALSE; @@ -27,7 +32,7 @@ wxDC::wxDC() m_brush = *wxWHITE_BRUSH; } -void wxDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord height ) +void wxGTKImplDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord height ) { m_clipping = TRUE; m_clipX1 = x; @@ -40,7 +45,7 @@ void wxDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord hei // get DC capabilities // --------------------------------------------------------------------------- -void wxDC::DoGetSizeMM( int* width, int* height ) const +void wxGTKImplDC::DoGetSizeMM( int* width, int* height ) const { int w = 0; int h = 0; @@ -50,7 +55,7 @@ void wxDC::DoGetSizeMM( int* width, int* height ) const } // Resolution in pixels per logical inch -wxSize wxDC::GetPPI() const +wxSize wxGTKImplDC::GetPPI() const { // TODO (should probably be pure virtual) return wxSize(0, 0);