Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPower committed Dec 17, 2024
1 parent a059213 commit 6cc3d7f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ 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 offset = windowSize * (OutputAreaPosition.Value - (new Vector2(0.5f))) * (Vector2.One - OutputAreaSize.Value);
Vector2 position = (windowSize / 2) + offset;

absoluteOutputMode.Output = new Area
{
Expand Down

0 comments on commit 6cc3d7f

Please sign in to comment.