Mercurial > hg > easaier-soundaccess
comparison layer/Colour3DPlotLayer.cpp @ 191:be6d31baecb9
compilation under linux - kunbuntu V7.10 (without video support)
author | lbajardsilogic |
---|---|
date | Wed, 28 Nov 2007 13:03:45 +0000 |
parents | fc9323a41f5a |
children |
comparison
equal
deleted
inserted
replaced
190:61681a2bc1e6 | 191:be6d31baecb9 |
---|---|
322 sampleText = m_model->getBinName(i); | 322 sampleText = m_model->getBinName(i); |
323 another = true; | 323 another = true; |
324 } | 324 } |
325 } | 325 } |
326 if (another) { | 326 if (another) { |
327 tw = max(tw, paint.fontMetrics().width(sampleText)); | 327 tw = MAX(tw, paint.fontMetrics().width(sampleText)); |
328 } | 328 } |
329 | 329 |
330 return tw + 13 + getColourScaleWidth(paint); | 330 return tw + 13 + getColourScaleWidth(paint); |
331 } | 331 } |
332 | 332 |
732 if (sx == sx1i) prop *= sx1 - sx; | 732 if (sx == sx1i) prop *= sx1 - sx; |
733 if (sy == sy0i) prop *= (sy + 1) - sy0; | 733 if (sy == sy0i) prop *= (sy + 1) - sy0; |
734 if (sy == sy1i) prop *= sy1 - sy; | 734 if (sy == sy1i) prop *= sy1 - sy; |
735 | 735 |
736 mag += prop * m_cache->pixelIndex(scx, sy); | 736 mag += prop * m_cache->pixelIndex(scx, sy); |
737 max = max(max, m_cache->pixelIndex(scx, sy)); | 737 max = MAX(max, m_cache->pixelIndex(scx, sy)); |
738 div += prop; | 738 div += prop; |
739 } | 739 } |
740 } | 740 } |
741 | 741 |
742 if (div != 0) mag /= div; | 742 if (div != 0) mag /= div; |