removing unnecessary - and incorrect - override, fixes #14319
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,8 +102,6 @@ public:
|
|||||||
virtual int GetDepth() const;
|
virtual int GetDepth() const;
|
||||||
virtual wxSize GetPPI() const;
|
virtual wxSize GetPPI() const;
|
||||||
|
|
||||||
virtual void SetMapMode(wxMappingMode mode);
|
|
||||||
|
|
||||||
virtual void SetLogicalFunction(wxRasterOperationMode function);
|
virtual void SetLogicalFunction(wxRasterOperationMode function);
|
||||||
|
|
||||||
virtual void SetTextForeground(const wxColour& colour);
|
virtual void SetTextForeground(const wxColour& colour);
|
||||||
|
@@ -399,35 +399,6 @@ void wxGCDCImpl::SetTextBackground( const wxColour &col )
|
|||||||
m_textBackgroundColour = col;
|
m_textBackgroundColour = col;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGCDCImpl::SetMapMode( wxMappingMode mode )
|
|
||||||
{
|
|
||||||
switch (mode)
|
|
||||||
{
|
|
||||||
case wxMM_TWIPS:
|
|
||||||
SetLogicalScale( twips2mm * m_mm_to_pix_x, twips2mm * m_mm_to_pix_y );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case wxMM_POINTS:
|
|
||||||
SetLogicalScale( pt2mm * m_mm_to_pix_x, pt2mm * m_mm_to_pix_y );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case wxMM_METRIC:
|
|
||||||
SetLogicalScale( m_mm_to_pix_x, m_mm_to_pix_y );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case wxMM_LOMETRIC:
|
|
||||||
SetLogicalScale( m_mm_to_pix_x / 10.0, m_mm_to_pix_y / 10.0 );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case wxMM_TEXT:
|
|
||||||
default:
|
|
||||||
SetLogicalScale( 1.0, 1.0 );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
ComputeScaleAndOrigin();
|
|
||||||
}
|
|
||||||
|
|
||||||
wxSize wxGCDCImpl::GetPPI() const
|
wxSize wxGCDCImpl::GetPPI() const
|
||||||
{
|
{
|
||||||
return wxSize(72, 72);
|
return wxSize(72, 72);
|
||||||
|
Reference in New Issue
Block a user