Merge https://github.com/Regalis11/Barotrauma into develop
This commit is contained in:
@@ -542,6 +542,7 @@ namespace Barotrauma
|
||||
void drawRect(Vector2 topLeft, Vector2 bottomRight)
|
||||
{
|
||||
int minWidth = GUI.IntScale(5);
|
||||
if (OverflowClip) { topLeft.X = Math.Max(topLeft.X, 0.0f); }
|
||||
if (bottomRight.X - topLeft.X < minWidth) { bottomRight.X = topLeft.X + minWidth; }
|
||||
GUI.DrawRectangle(spriteBatch,
|
||||
Rect.Location.ToVector2() + topLeft,
|
||||
|
||||
Reference in New Issue
Block a user