Fix ref usage warnings with in-parameters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user