Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update 截屏时限制鼠标只能在当前屏幕
Browse files Browse the repository at this point in the history
  • Loading branch information
tylearymf committed Sep 23, 2019
1 parent 9266740 commit bcc9f5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[assembly: System.Runtime.InteropServices.ComVisible(false)]
[assembly: System.Runtime.InteropServices.Guid("4483e561-8b3e-427d-98a4-e0e821b7bf2f")]
[assembly: System.Reflection.AssemblyConfiguration("")]
[assembly: System.Reflection.AssemblyFileVersion("2.5.5")]
[assembly: System.Reflection.AssemblyFileVersion("2.5.6")]
[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)]
[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)]

6 changes: 4 additions & 2 deletions SETUNA/Main/CaptureForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,6 @@ public void ShowCapture(SetunaOption.SetunaOptionData opt)
{
if (imgSnap != null)
{
Cursor.Current = Cursors.Cross;
Cursor.Clip = this.targetScreen.Bounds;
if ((this.screenNewSize.Width != imgSnap.Width) || (this.screenNewSize.Height != imgSnap.Height))
{
imgSnap = new Bitmap(this.screenNewSize.Width, this.screenNewSize.Height, PixelFormat.Format24bppRgb);
Expand Down Expand Up @@ -560,6 +558,10 @@ public void ShowCapture(SetunaOption.SetunaOptionData opt)
selLineVer2.Show(this);
}
Console.WriteLine(string.Concat(new object[] { "14 - ", DateTime.Now.ToString(), " ", DateTime.Now.Millisecond }));

Thread.Sleep(1);
Cursor.Current = Cursors.Cross;
Cursor.Clip = this.targetScreen.Bounds;
}
}

Expand Down

0 comments on commit bcc9f5d

Please sign in to comment.