DrawRoundRectEx readability

This commit is contained in:
Дядя Женя 2020-10-26 21:50:56 +03:00
parent 42fae14e03
commit 05d6201a72

View file

@ -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) void CRenderTools::DrawRoundRectExt(float x, float y, float w, float h, float r, int Corners)
{ {
IGraphics::CFreeformItem ArrayF[32];
int NumItems = 0; int NumItems = 0;
int Num = 8; const int Num = 8;
IGraphics::CFreeformItem ArrayF[Num * 4];
for(int i = 0; i < Num; i += 2) for(int i = 0; i < Num; i += 2)
{ {
float a1 = i / (float)Num * pi / 2; float a1 = i / (float)Num * pi / 2;