summaryrefslogtreecommitdiff
path: root/Applications/SoundPlayer/SampleWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/SoundPlayer/SampleWidget.cpp')
-rw-r--r--Applications/SoundPlayer/SampleWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SoundPlayer/SampleWidget.cpp b/Applications/SoundPlayer/SampleWidget.cpp
index f171cdeb24..1fa86e6a5c 100644
--- a/Applications/SoundPlayer/SampleWidget.cpp
+++ b/Applications/SoundPlayer/SampleWidget.cpp
@@ -31,7 +31,7 @@ void SampleWidget::paint_event(GPaintEvent& event)
for (int x = 0; x < samples_to_draw; ++x) {
// FIXME: This might look nicer if drawn as lines.
auto& sample = m_buffer->samples()[x];
- Point p = { x, frame_inner_rect().center().y() + (int)(sample.left * frame_inner_rect().height()) };
+ Point p = { x, frame_inner_rect().center().y() + (int)(sample.left * frame_inner_rect().height() / 2) };
painter.set_pixel(p, Color::Green);
}
}