From aa687ec86e4c5b209cedc51dbbd5722b9b5b74ea Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 18 Sep 2016 23:08:49 +0200 Subject: [PATCH] Implement wxGraphicsMatrixData::Clone() method for Direct2D renderer --- src/msw/graphicsd2d.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index 3f51a72e9d..98dea01773 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -867,6 +867,8 @@ public: wxD2DMatrixData(wxGraphicsRenderer* renderer); wxD2DMatrixData(wxGraphicsRenderer* renderer, const D2D1::Matrix3x2F& matrix); + virtual wxGraphicsObjectRefData* Clone() const wxOVERRIDE; + void Concat(const wxGraphicsMatrixData* t) wxOVERRIDE; void Set(wxDouble a = 1.0, wxDouble b = 0.0, wxDouble c = 0.0, wxDouble d = 1.0, @@ -913,6 +915,11 @@ wxD2DMatrixData::wxD2DMatrixData(wxGraphicsRenderer* renderer, const D2D1::Matri { } +wxGraphicsObjectRefData* wxD2DMatrixData::Clone() const +{ + return new wxD2DMatrixData(GetRenderer(), m_matrix); +} + void wxD2DMatrixData::Concat(const wxGraphicsMatrixData* t) { // Elements of resulting matrix are modified in-place in SetProduct()