Fix ref usage warnings with in-parameters

This commit is contained in:
2025-12-06 00:36:28 +02:00
parent 74bac97f44
commit ecf074801f
83 changed files with 185 additions and 185 deletions

View File

@@ -261,7 +261,7 @@ namespace FlaxEngine.GUI
var rect = new Rectangle(margin.Location, Size - margin.Size);
if (ClipText)
Render2D.PushClip(ref rect);
Render2D.PushClip(rect);
var color = IsMouseOver || IsNavFocused ? TextColorHighlighted : TextColor;
if (!EnabledInHierarchy)
@@ -326,7 +326,7 @@ namespace FlaxEngine.GUI
layout.Bounds.Size.X = Width - Margin.Width;
else if (_autoWidth && !_autoHeight)
layout.Bounds.Size.Y = Height - Margin.Height;
_textSize = font.MeasureText(text, ref layout);
_textSize = font.MeasureText(text, layout);
_textSize.Y *= BaseLinesGapScale;
// Check if size is controlled via text