Skip to content

Commit

Permalink
fix horizontal drawing of wvumetergl
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB committed Oct 18, 2022
1 parent 363b49b commit bd57f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/wvumetergl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void WVuMeterGL::render(VSyncThread* vSyncThread) {
const double widgetPeakPosition = math_clamp(
widgetWidth * m_dPeakParameter, 0.0, widgetWidth);
const double pixmapPeakHoldSize = static_cast<double>(m_iPeakHoldSize);
const double widgetPeakHoldSize = widgetWidth * pixmapPeakHoldSize / pixmapHeight;
const double widgetPeakHoldSize = widgetWidth * pixmapPeakHoldSize / pixmapWidth;

QRectF targetRect(widgetPeakPosition - widgetPeakHoldSize,
0,
Expand Down

0 comments on commit bd57f69

Please sign in to comment.