diff --git a/include/wx/dfb/dc.h b/include/wx/dfb/dc.h index 141224ba68..4dac548d98 100644 --- a/include/wx/dfb/dc.h +++ b/include/wx/dfb/dc.h @@ -157,8 +157,6 @@ private: protected: wxIDirectFBSurfacePtr m_surface; - double m_mm_to_pix_x, m_mm_to_pix_y; - friend class WXDLLIMPEXP_FWD_CORE wxOverlayImpl; // for Init wxDECLARE_ABSTRACT_CLASS(wxDFBDCImpl); diff --git a/src/dfb/dc.cpp b/src/dfb/dc.cpp index 241bcd0562..b718de4c98 100644 --- a/src/dfb/dc.cpp +++ b/src/dfb/dc.cpp @@ -51,11 +51,6 @@ void wxDFBDCImpl::DFBInit(const wxIDirectFBSurfacePtr& surface) wxCHECK_RET( surface != NULL, "invalid surface" ); - m_mm_to_pix_x = (double)wxGetDisplaySize().GetWidth() / - (double)wxGetDisplaySizeMM().GetWidth(); - m_mm_to_pix_y = (double)wxGetDisplaySize().GetHeight() / - (double)wxGetDisplaySizeMM().GetHeight(); - SetFont(DEFAULT_FONT); SetPen(DEFAULT_PEN); SetBrush(DEFAULT_BRUSH);