Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Nov 15, 2022
1 parent 8de8a8f commit 08b3efc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Configuration/CameraSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ ScreenRect _viewRectCfg {
value.width = Math.Min(2, Math.Abs(value.width));
value.height = Math.Min(2, Math.Abs(value.height));

var _x = value.width * .5f;
var _y = value.height * .5f;
var _x = value.width * .75f;
var _y = value.height * .75f;

value.x = Mathf.Clamp(value.x, -_x, _x);
value.y = Mathf.Clamp(value.y, -_y, _y);
value.x = Mathf.Clamp(value.x, -_x, Math.Max(0.75f, 1 - _x));
value.y = Mathf.Clamp(value.y, -_y, Math.Max(0.75f, 1 - _y));

viewRect = value;
}
Expand Down

0 comments on commit 08b3efc

Please sign in to comment.