Fix for compile error

This commit is contained in:
RKrom 2014-11-04 11:32:43 +01:00
parent eefdf2b2eb
commit 98cbe99f9a
2 changed files with 4 additions and 3 deletions

View file

@ -19,19 +19,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
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 {
/// <param name="e"></param>
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);
}

View file

@ -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);