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 04:57:59 (GMT)
commita32e77c6527fae48ac6952ee9e0f8fafb033319e (patch)
treef493aadbf385d53825d3ece56cae5b271346345d
parentc0237bb0414854b6a564450579bb4309f81ae0c1 (diff)
Mythmusic: Fix fullscreen spectrum visualisation.
Signed-off-by: mark-kendall <mkendall@mythtv.org>
-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() );