mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
DrawRoundRectEx readability
This commit is contained in:
parent
42fae14e03
commit
05d6201a72
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue