diff --git a/Greenshot/Forms/CaptureForm.cs b/Greenshot/Forms/CaptureForm.cs
index 7a05d7ec7..2fca366f4 100644
--- a/Greenshot/Forms/CaptureForm.cs
+++ b/Greenshot/Forms/CaptureForm.cs
@@ -19,19 +19,20 @@
* along with this program. If not, see .
*/
-using System.Globalization;
using Greenshot.Drawing;
using Greenshot.Helpers;
using Greenshot.IniFile;
using Greenshot.Plugin;
using GreenshotPlugin.Controls;
using GreenshotPlugin.Core;
+using GreenshotPlugin.UnmanagedHelpers;
using log4net;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
+using System.Globalization;
using System.Security.Permissions;
using System.Windows.Forms;
@@ -383,7 +384,7 @@ namespace Greenshot.Forms {
///
void OnMouseMove(object sender, MouseEventArgs e) {
// Make sure the mouse coordinates are fixed, when pressing shift
- _mouseMovePos = FixMouseCoordinates(WindowCapture.GetCursorLocation());
+ _mouseMovePos = FixMouseCoordinates(User32.GetCursorLocation());
_mouseMovePos = WindowCapture.GetLocationRelativeToScreenBounds(_mouseMovePos);
}
diff --git a/Greenshot/Helpers/CaptureHelper.cs b/Greenshot/Helpers/CaptureHelper.cs
index 6ed35a89a..76daf7c9d 100644
--- a/Greenshot/Helpers/CaptureHelper.cs
+++ b/Greenshot/Helpers/CaptureHelper.cs
@@ -309,7 +309,7 @@ namespace Greenshot.Helpers {
bool captureTaken = false;
switch (_screenCaptureMode) {
case ScreenCaptureMode.Auto:
- Point mouseLocation = WindowCapture.GetCursorLocation();
+ Point mouseLocation = User32.GetCursorLocation();
foreach (Screen screen in Screen.AllScreens) {
if (screen.Bounds.Contains(mouseLocation)) {
_capture = WindowCapture.CaptureRectangle(_capture, screen.Bounds);