mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove unnecessary temporary CUIRect
This commit is contained in:
parent
c62cc979cb
commit
d6d8739031
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue