Skip to content

Commit

Permalink
Fix Rect2D render coords
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed Nov 2, 2024
1 parent 9368d47 commit 6ef1e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RLBotCS/ManagerTools/Rendering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private ushort SendRect2D(Rect2DT rect2Dt)
var adjustedX =
!rect2Dt.Centered && rect2Dt.Width < 0 ? rect2Dt.X - rect2Dt.Width : rect2Dt.X;
var adjustedY =
!rect2Dt.Centered && rect2Dt.Height < 0 ? rect2Dt.Y - rect2Dt.Height : rect2Dt.X;
!rect2Dt.Centered && rect2Dt.Height < 0 ? rect2Dt.Y - rect2Dt.Height : rect2Dt.Y;

// Fake a filled rectangle using a string with colored background
var (text, scale) = MakeFakeRectangleString(
Expand Down

0 comments on commit 6ef1e6e

Please sign in to comment.