Skip to content

Commit

Permalink
Remove trivial comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPower committed Dec 17, 2024
1 parent 93ca8c0 commit 93b2feb
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,18 @@ private void updateOutputArea(IWindow window)
{
case AbsoluteOutputMode absoluteOutputMode:
{
// window size & pos
float outputWidth = window.ClientSize.Width;
float outputHeight = window.ClientSize.Height;
float posX = outputWidth / 2;
float posY = outputHeight / 2;

// applying "output area"
float areaOffsX = (1f - OutputAreaSize.Value.X) * (OutputAreaPosition.Value.X - 0.5f) * outputWidth;
float areaOffsY = (1f - OutputAreaSize.Value.Y) * (OutputAreaPosition.Value.Y - 0.5f) * outputHeight;
outputWidth *= OutputAreaSize.Value.X;
outputHeight *= OutputAreaSize.Value.Y;
posX += areaOffsX;
posY += areaOffsY;

// Set output area in pixels
absoluteOutputMode.Output = new Area
{
Width = outputWidth,
Expand Down

0 comments on commit 93b2feb

Please sign in to comment.