Remove unnecessary temporary CUIRect

This commit is contained in:
Robert Müller 2023-01-24 18:09:56 +01:00
parent c62cc979cb
commit d6d8739031

View file

@ -5112,13 +5112,8 @@ void CEditor::RenderEnvelopeEditor(CUIRect View)
float x0 = pEnvelope->m_vPoints[i].m_Time / 1000.0f / EndTime;
float x1 = pEnvelope->m_vPoints[i + 1].m_Time / 1000.0f / EndTime;
CUIRect v;
v.x = ColorBar.x + x0 * ColorBar.w;
v.y = ColorBar.y;
v.w = (x1 - x0) * ColorBar.w;
v.h = ColorBar.h;
IGraphics::CQuadItem QuadItem(v.x, v.y, v.w, v.h);
IGraphics::CQuadItem QuadItem(ColorBar.x + x0 * ColorBar.w, ColorBar.y, (x1 - x0) * ColorBar.w, ColorBar.h);
Graphics()->QuadsDrawTL(&QuadItem, 1);
}
Graphics()->QuadsEnd();