Remove redundant wxDFBDCImpl::m_mm_to_pix_[xy] members

The base class already has exactly the same members, so just use them
instead.

No real changes, just avoid (or at least reduce) confusion.
This commit is contained in:
Vadim Zeitlin
2018-12-05 23:39:00 +01:00
parent 3dc16a7419
commit 54e9150157
2 changed files with 0 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);