Skip to content

Commit

Permalink
Fix calculation for automatic positioning and rendering scales
Browse files Browse the repository at this point in the history
  • Loading branch information
Leapward-Koex committed Nov 9, 2024
1 parent 9d06a02 commit a01cdd6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 49 deletions.
4 changes: 2 additions & 2 deletions Managers/TouchPanelPositionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public struct RECT
{
// Calculate the desired size and position based on the other application's window
var renderRect = GetLargest916Rect(rect);
var height = renderRect.Width;
var height = renderRect.Height;
var left = rect.Left + (rect.Right - rect.Left - renderRect.Width) / 2; // Center horizontally
var top = rect.Bottom - height;
var top = renderRect.Top;
return new Rect(left, top, renderRect.Width, height);
}
}
Expand Down
Loading

0 comments on commit a01cdd6

Please sign in to comment.