fix box height

This commit is contained in:
GenZmeY 2021-06-07 01:43:01 +03:00
parent 33d1237c69
commit 162c882b78

View File

@ -603,11 +603,11 @@ final function DrawRectBox( float X, float Y, float Width, float Height, int Edg
// \______/ // \______/
// Top left // Top left
Canvas.SetPos(X,Y); Canvas.SetPos(X,Y-Edge);
DrawCornerTex(Edge,1); DrawCornerTex(Edge,1);
// Top right // Top right
Canvas.SetPos(X+Width-Edge,Y); Canvas.SetPos(X+Width-Edge,Y-Edge);
DrawCornerTex(Edge,0); DrawCornerTex(Edge,0);
// Bottom right // Bottom right
@ -615,8 +615,8 @@ final function DrawRectBox( float X, float Y, float Width, float Height, int Edg
DrawCornerTex(Edge,3); DrawCornerTex(Edge,3);
// Mid Fill // Mid Fill
Canvas.SetPos(X,Y+Edge); Canvas.SetPos(X,Y);
DrawWhiteBox(Width,Height-Edge*2); DrawWhiteBox(Width,Height-Edge);
// Bottom Fill // Bottom Fill
Canvas.SetPos(X+Edge,Y+Height-Edge); Canvas.SetPos(X+Edge,Y+Height-Edge);