Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ClampRectangle method and update D3D11Screen logic
Introduced a new private method `ClampRectangle` in the `AIManager` class to ensure rectangles are clamped within screen bounds, preventing out-of-bounds issues. Updated the `D3D11Screen` method to use `ClampRectangle` for adjusting the `detectionBox` parameter. Added a `using` directive for `System.Windows.Threading` to support the use of `Dispatcher`.
- Loading branch information