From d6d87390316cf33e1178361ecc020a2a28cd9526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Tue, 24 Jan 2023 18:09:56 +0100 Subject: [PATCH] Remove unnecessary temporary `CUIRect` --- src/game/editor/editor.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index e89ac7f97..0af853e4b 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -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();