From 5ff553005dbf88d89c759cade5195ed4245ac51a Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 8 Nov 2014 22:32:31 +0100 Subject: [PATCH] visualizer: stereo ellipse: make radius of each ring constant --- src/visualizer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/visualizer.cpp b/src/visualizer.cpp index 3904c89e..1e887112 100644 --- a/src/visualizer.cpp +++ b/src/visualizer.cpp @@ -364,9 +364,8 @@ void Visualizer::DrawSoundEllipseStereo(int16_t *buf_left, int16_t *buf_right, s { const size_t half_width = w.getWidth()/2; - // Makes the radius of the color circle proportional to max of height or width. - // Divide by colors size so that there are multiple color rings instead of just a few. - const int32_t radius = std::max(half_width, half_height)/Config.visualizer_colors.size(); + // Makes the radius of each ring be approximately 2 cells wide. + const int32_t radius = 2*Config.visualizer_colors.size(); int32_t x, y; for (ssize_t i = 0; i < samples; ++i) {