Skip to content

Commit

Permalink
Merge pull request mixxxdj#10979 from m0dB/vumeter_fix
Browse files Browse the repository at this point in the history
fix horizontal drawing of wvumetergl
  • Loading branch information
ronso0 authored Oct 18, 2022
2 parents 363b49b + bd57f69 commit 867e9e4
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 867e9e4

Please sign in to comment.