Skip to content

Commit

Permalink
Address ambiguous arithmetic precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPower committed Dec 17, 2024
1 parent 1f3075e commit 679c19f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void updateOutputArea(IWindow window)
{
Vector2 windowSize = new Vector2(window.ClientSize.Width, window.ClientSize.Height);
Vector2 scaledSize = windowSize * OutputAreaSize.Value;
Vector2 position = windowSize / 2 + windowSize * (OutputAreaPosition.Value - Vector2.One / 2) * (Vector2.One - OutputAreaSize.Value);
Vector2 position = (windowSize / 2) + windowSize * (OutputAreaPosition.Value - (Vector2.One / 2)) * (Vector2.One - OutputAreaSize.Value);

absoluteOutputMode.Output = new Area
{
Expand Down

0 comments on commit 679c19f

Please sign in to comment.