Skip to content

Commit 0f0d844

Browse files
committed
Revert "mouse capture: restrict to center"
This reverts commit b0b32be. see commit discussion
1 parent d88f70a commit 0f0d844

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/BizHawk.Client.EmuHawk/MainForm.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -4899,11 +4899,9 @@ private void CaptureMouse(bool wantCapture)
48994899
{
49004900
if (wantCapture)
49014901
{
4902-
var size = _presentationPanel.Control.Size;
49034902
var fbLocation = Point.Subtract(Bounds.Location, new(PointToClient(Location)));
49044903
fbLocation.Offset(_presentationPanel.Control.Location);
4905-
fbLocation.Offset(new Point(size.Width / 2, size.Height / 2));
4906-
Cursor.Clip = new(fbLocation, new(1, 1));
4904+
Cursor.Clip = new(fbLocation, _presentationPanel.Control.Size);
49074905
Cursor.Hide();
49084906
_presentationPanel.Control.Cursor = Properties.Resources.BlankCursor;
49094907
_cursorHidden = true;

0 commit comments

Comments
 (0)