Revert "Implement GetContentScaleFactor for wxMSWDCImpl"
This reverts commit b0152155c0
.
After changing wxWindow::GetContentScaleFactor() to return 1 on
platforms without logical pixels, such as MSW, in the grandparent
commit, make wxDC::GetContentScaleFactor() consistent with it too.
This commit is contained in:
@@ -77,7 +77,6 @@ public:
|
|||||||
virtual bool CanGetTextExtent() const wxOVERRIDE;
|
virtual bool CanGetTextExtent() const wxOVERRIDE;
|
||||||
virtual int GetDepth() const wxOVERRIDE;
|
virtual int GetDepth() const wxOVERRIDE;
|
||||||
virtual wxSize GetPPI() const wxOVERRIDE;
|
virtual wxSize GetPPI() const wxOVERRIDE;
|
||||||
virtual double GetContentScaleFactor() const wxOVERRIDE;
|
|
||||||
|
|
||||||
|
|
||||||
virtual void SetMapMode(wxMappingMode mode) wxOVERRIDE;
|
virtual void SetMapMode(wxMappingMode mode) wxOVERRIDE;
|
||||||
|
@@ -2555,11 +2555,6 @@ wxSize wxMSWDCImpl::GetPPI() const
|
|||||||
return ppi;
|
return ppi;
|
||||||
}
|
}
|
||||||
|
|
||||||
double wxMSWDCImpl::GetContentScaleFactor() const
|
|
||||||
{
|
|
||||||
return GetPPI().y / 96.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// DC caching
|
// DC caching
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user