Fix scaling of H-C vectorscope

This commit is contained in:
Lawrence Lee
2020-09-22 22:10:57 -07:00
parent 79e79321ec
commit 6e7185081a
2 changed files with 4 additions and 3 deletions

View File

@@ -1666,7 +1666,7 @@ void HistogramArea::drawVectorscope(Cairo::RefPtr<Cairo::Context> &cr, int w, in
cx = (w + scope_size * S * std::cos(H * 2 * RT_PI_F)) / 2;
cy = (h - scope_size * S * std::sin(H * 2 * RT_PI_F)) / 2;
} else {
constexpr float ab_factor = 327.68f / 96000.f;
constexpr float ab_factor = 1.f / 256.f;
cx = w / 2.f + scope_size * pointer_a * ab_factor;
cy = h / 2.f - scope_size * pointer_b * ab_factor;
}