Mercurial > hg > svgui
changeset 355:9aab6bd27fcc
...
author | Chris Cannam |
---|---|
date | Wed, 30 Jan 2008 14:43:05 +0000 |
parents | 94ada7dbae3c |
children | bff85425228c |
files | view/View.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/view/View.cpp Fri Jan 25 18:15:57 2008 +0000 +++ b/view/View.cpp Wed Jan 30 14:43:05 2008 +0000 @@ -330,9 +330,11 @@ if (e) { size_t rf = alignToReference(f); +#ifdef DEBUG_VIEW_WIDGET_PAINT std::cerr << "View[" << this << "]::setCentreFrame(" << f << "): emitting centreFrameChanged(" << rf << ")" << std::endl; +#endif emit centreFrameChanged(rf, m_followPan, m_followPlay); } } @@ -352,7 +354,9 @@ long z = (long)m_zoomLevel; long frame = m_centreFrame - (width()/2) * z; +#ifdef DEBUG_VIEW_WIDGET_PAINT std::cerr << "View::getFrameForX(" << x << "): z = " << z << ", m_centreFrame = " << m_centreFrame << ", width() = " << width() << ", frame = " << frame << std::endl; +#endif frame = (frame / z) * z; // this is start frame return frame + x * z;