Mercurial > hg > svgui
comparison view/ViewProxy.h @ 1044:4e5c1c326794 3.0-integration
Make ViewProxy objects share the ids of their Views; fixes incorrect colour scale drawing
author | Chris Cannam |
---|---|
date | Tue, 09 Feb 2016 10:59:36 +0000 |
parents | 0be17aafa935 |
children | 5144d7185fb5 |
comparison
equal
deleted
inserted
replaced
1043:fccee028a522 | 1044:4e5c1c326794 |
---|---|
21 { | 21 { |
22 public: | 22 public: |
23 ViewProxy(View *view, int scaleFactor) : | 23 ViewProxy(View *view, int scaleFactor) : |
24 m_view(view), m_scaleFactor(scaleFactor) { } | 24 m_view(view), m_scaleFactor(scaleFactor) { } |
25 | 25 |
26 virtual int getId() const { | |
27 return m_view->getId(); | |
28 } | |
26 virtual sv_frame_t getStartFrame() const { | 29 virtual sv_frame_t getStartFrame() const { |
27 return m_view->getStartFrame(); | 30 return m_view->getStartFrame(); |
28 } | 31 } |
29 virtual sv_frame_t getCentreFrame() const { | 32 virtual sv_frame_t getCentreFrame() const { |
30 return m_view->getCentreFrame(); | 33 return m_view->getCentreFrame(); |