Mercurial > hg > svgui
diff widgets/Panner.cpp @ 437:755243c67f59
* Add vertical zoom and pan to time-value layer.
  Still some defects, particularly in logarithmic mode.
  Now need to get this in note layer as well!
* Some fixes to log colouring in segmentation mode of time-value layer.
| author | Chris Cannam | 
|---|---|
| date | Fri, 24 Oct 2008 14:52:40 +0000 | 
| parents | c492902dba40 | 
| children | 76cd1c89eb06 | 
line wrap: on
 line diff
--- a/widgets/Panner.cpp Thu Oct 23 16:30:48 2008 +0000 +++ b/widgets/Panner.cpp Fri Oct 24 14:52:40 2008 +0000 @@ -163,10 +163,14 @@ paint.setBrush(hl); + int rw = lrintf(width() * m_rectWidth); + int rh = lrintf(height() * m_rectHeight); + if (rw < 2) rw = 2; + if (rh < 2) rh = 2; + paint.drawRect(lrintf(width() * m_rectX), lrintf(height() * m_rectY), - lrintf(width() * m_rectWidth), - lrintf(height() * m_rectHeight)); + rw, rh); } void
