From 05d6201a72579d73547e79af0ed4773a19cdbf86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D1=8F=D0=B4=D1=8F=20=D0=96=D0=B5=D0=BD=D1=8F?= Date: Mon, 26 Oct 2020 21:50:56 +0300 Subject: [PATCH] DrawRoundRectEx readability --- src/game/client/render.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/client/render.cpp b/src/game/client/render.cpp index 8f2f08882..03560fce4 100644 --- a/src/game/client/render.cpp +++ b/src/game/client/render.cpp @@ -174,9 +174,11 @@ void CRenderTools::QuadContainerAddSprite(int QuadContainerIndex, float X, float void CRenderTools::DrawRoundRectExt(float x, float y, float w, float h, float r, int Corners) { - IGraphics::CFreeformItem ArrayF[32]; int NumItems = 0; - int Num = 8; + const int Num = 8; + + IGraphics::CFreeformItem ArrayF[Num * 4]; + for(int i = 0; i < Num; i += 2) { float a1 = i / (float)Num * pi / 2;