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:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user