summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLawrence Rust <lvr@softsystem.co.uk>2011-03-16 04:57:59 (GMT)
committer mark-kendall <mkendall@mythtv.org>2011-03-16 05:07:29 (GMT)
commit223142cf3970f303a907ac935ffd063925dcb514 (patch)
treead2575e66e5730498db4750e2e89fce36eb65596
parenta6decbcba77e336529ced88bf01cfe749318dcc8 (diff)
Mythmusic: Fix fullscreen spectrum visualisation.
Signed-off-by: mark-kendall <mkendall@mythtv.org> (cherry picked from commit a32e77c6527fae48ac6952ee9e0f8fafb033319e)
-rw-r--r--mythplugins/mythmusic/mythmusic/visualize.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mythplugins/mythmusic/mythmusic/visualize.cpp b/mythplugins/mythmusic/mythmusic/visualize.cpp
index b339cf9..8ca838f 100644
--- a/mythplugins/mythmusic/mythmusic/visualize.cpp
+++ b/mythplugins/mythmusic/mythmusic/visualize.cpp
@@ -104,6 +104,9 @@ void Spectrum::resize(const QSize &newsize)
size = newsize;
+ analyzerBarWidth = size.width() / 64;
+ if (analyzerBarWidth < 6)
+ analyzerBarWidth = 6;
scale.setMax(192, size.width() / analyzerBarWidth);
rects.resize( scale.range() );