Remove unused scale factor parameter in wxD2DOffsetHelper ctor

This was added 52cc838b12 (Implement 0-width pen consistently in
wxGraphicsContext, 2021-04-05) but doesn't seem useful and, in fact, was
not used at all in the constructor body, resulting in an unused
parameter warning, so just remove it.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-04-08 00:35:13 +01:00
parent 5e8bb6f2e7
commit 6a49524a94

View File

@@ -1107,7 +1107,7 @@ wxCOMPtr<ID2D1Geometry> wxD2DConvertRegionToGeometry(ID2D1Factory* direct2dFacto
class wxD2DOffsetHelper
{
public:
wxD2DOffsetHelper(wxGraphicsContext* g, double scaleFactor)
explicit wxD2DOffsetHelper(wxGraphicsContext* g)
: m_context(g)
{
m_offset = 0;
@@ -4346,7 +4346,7 @@ void wxD2DContext::StrokePath(const wxGraphicsPath& p)
if (m_composition == wxCOMPOSITION_DEST)
return;
wxD2DOffsetHelper helper(this, GetContentScaleFactor());
wxD2DOffsetHelper helper(this);
EnsureInitialized();
AdjustRenderTargetSize();
@@ -4810,7 +4810,7 @@ void wxD2DContext::DrawRectangle(wxDouble x, wxDouble y, wxDouble w, wxDouble h)
if (m_composition == wxCOMPOSITION_DEST)
return;
wxD2DOffsetHelper helper(this, GetContentScaleFactor());
wxD2DOffsetHelper helper(this);
EnsureInitialized();
AdjustRenderTargetSize();
@@ -4839,7 +4839,7 @@ void wxD2DContext::DrawRoundedRectangle(wxDouble x, wxDouble y, wxDouble w, wxDo
if (m_composition == wxCOMPOSITION_DEST)
return;
wxD2DOffsetHelper helper(this, GetContentScaleFactor());
wxD2DOffsetHelper helper(this);
EnsureInitialized();
AdjustRenderTargetSize();
@@ -4869,7 +4869,7 @@ void wxD2DContext::DrawEllipse(wxDouble x, wxDouble y, wxDouble w, wxDouble h)
if (m_composition == wxCOMPOSITION_DEST)
return;
wxD2DOffsetHelper helper(this, GetContentScaleFactor());
wxD2DOffsetHelper helper(this);
EnsureInitialized();
AdjustRenderTargetSize();