Mercurial > hg > svgui
comparison view/Pane.cpp @ 438:76cd1c89eb06
* minor tidy
author | Chris Cannam |
---|---|
date | Fri, 24 Oct 2008 16:21:57 +0000 |
parents | 755243c67f59 |
children | 035d62c4cddf |
comparison
equal
deleted
inserted
replaced
437:755243c67f59 | 438:76cd1c89eb06 |
---|---|
2135 float vmin, vmax, dmin, dmax; | 2135 float vmin, vmax, dmin, dmax; |
2136 if (!getTopLayerDisplayExtents(vmin, vmax, dmin, dmax)) return; | 2136 if (!getTopLayerDisplayExtents(vmin, vmax, dmin, dmax)) return; |
2137 float y1 = y0 + h; | 2137 float y1 = y0 + h; |
2138 float newmax = vmin + ((1.0 - y0) * (vmax - vmin)); | 2138 float newmax = vmin + ((1.0 - y0) * (vmax - vmin)); |
2139 float newmin = vmin + ((1.0 - y1) * (vmax - vmin)); | 2139 float newmin = vmin + ((1.0 - y1) * (vmax - vmin)); |
2140 std::cerr << "verticalPannerMoved: (" << x0 << "," << y0 << "," << w | 2140 // std::cerr << "verticalPannerMoved: (" << x0 << "," << y0 << "," << w |
2141 << "," << h << ") -> (" << newmin << "," << newmax << ")" << std::endl; | 2141 // << "," << h << ") -> (" << newmin << "," << newmax << ")" << std::endl; |
2142 setTopLayerDisplayExtents(newmin, newmax); | 2142 setTopLayerDisplayExtents(newmin, newmax); |
2143 } | 2143 } |
2144 | 2144 |
2145 void | 2145 void |
2146 Pane::editVerticalPannerExtents() | 2146 Pane::editVerticalPannerExtents() |