X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2970ae54d3ac3989cd47180229bc7d6cc0f65f51..90df6033544b93f48573c6a5371fefc87f36e564:/src/gtk/dc.cpp diff --git a/src/gtk/dc.cpp b/src/gtk/dc.cpp index 9b2bcee17f..fc3b001282 100644 --- a/src/gtk/dc.cpp +++ b/src/gtk/dc.cpp @@ -18,12 +18,17 @@ //----------------------------------------------------------------------------- #if wxUSE_NEW_DC -IMPLEMENT_ABSTRACT_CLASS(wxGTKImplDC, wxDC) +IMPLEMENT_ABSTRACT_CLASS(wxGTKImplDC, wxImplDC) #else IMPLEMENT_ABSTRACT_CLASS(wxGTKImplDC, wxDCBase) #endif -wxGTKImplDC::wxGTKImplDC() +#if wxUSE_NEW_DC +wxGTKImplDC::wxGTKImplDC( wxDC *owner ) + : wxImplDC( owner ) +#else +wxDC::wxDC() +#endif { m_ok = FALSE; @@ -32,6 +37,10 @@ wxGTKImplDC::wxGTKImplDC() m_brush = *wxWHITE_BRUSH; } +wxGTKImplDC::~wxGTKImplDC() +{ +} + void wxGTKImplDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord height ) { m_clipping = TRUE; @@ -49,7 +58,7 @@ void wxGTKImplDC::DoGetSizeMM( int* width, int* height ) const { int w = 0; int h = 0; - GetSize( &w, &h ); + GetOwner()->GetSize( &w, &h ); if (width) *width = int( double(w) / (m_userScaleX*m_mm_to_pix_x) ); if (height) *height = int( double(h) / (m_userScaleY*m_mm_to_pix_y) ); }