perf_overlay: fix guide line locations

The guide lines falsely started from the top and not from the bottom, as all datapoints do.
This commit is contained in:
Megamouse 2021-05-29 03:30:34 +02:00
parent 046d029e89
commit 210999b874

View file

@ -841,7 +841,7 @@ namespace rsx
for (auto y_off = m_guide_interval; y_off < m_max; y_off += m_guide_interval)
{
const f32 guide_y = y + y_off * normalize_factor;
const f32 guide_y = y + h - y_off * normalize_factor;
verts_guides.emplace_back(x, guide_y);
verts_guides.emplace_back(static_cast<float>(x + w), guide_y);
}