diff options
author | Roman Sorokin <sorok-roma@yandex.ru> | 2014-08-20 19:05:55 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:25:19 +0300 |
commit | 36e822e9d72a6757c8056f22e35b6df43aa941db (patch) | |
tree | 23260b143cf708eac55b698ef48bbecfaa6792d7 /drape_head | |
parent | d67ba2de4a16237517eb76fbf6a0acd07eb8fb56 (diff) |
Changed interface of GetPixelShape
Diffstat (limited to 'drape_head')
-rw-r--r-- | drape_head/testing_engine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp index 54786c66db..f004ed43ba 100644 --- a/drape_head/testing_engine.cpp +++ b/drape_head/testing_engine.cpp @@ -131,11 +131,10 @@ public: } virtual m2::RectD GetPixelRect(ScreenBase const & screen) const { return m2::RectD(); } - vector<m2::RectF> & GetPixelShape(ScreenBase const & screen) + void GetPixelShape(ScreenBase const & screen, Rects & rects) const { m2::RectD rd = GetPixelRect(screen); - m_bbox[0] = m2::RectF(rd.minX(), rd.minY(), rd.maxX(), rd.maxY()); - return m_bbox; + rects.push_back(m2::RectF(rd.minX(), rd.minY(), rd.maxX(), rd.maxY())); } virtual void GetAttributeMutation(dp::RefPointer<dp::AttributeBufferMutator> mutator, ScreenBase const & screen) const @@ -158,7 +157,6 @@ public: private: vector<m2::PointF> m_vectors; - vector<m2::RectF> m_bbox; }; class SquareShape : public MapShape |