From 6a49524a9463abbb196132e4caab307964d0b6eb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 8 Apr 2021 00:35:13 +0100 Subject: [PATCH] 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. --- src/msw/graphicsd2d.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index 386be2d678..65eede9d30 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -1107,7 +1107,7 @@ wxCOMPtr 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();