Fix magnifier ellipse one off issue, set magnifier pixel size minimum 3

This commit is contained in:
Jaex 2016-07-27 05:23:35 +03:00
parent 651d1601d0
commit 35363e7ac9
2 changed files with 3 additions and 3 deletions

View file

@ -665,8 +665,8 @@ private void DrawCursorGraphics(Graphics g)
else
{
g.FillEllipse(brush, x, y + magnifierPosition, magnifier.Width, magnifier.Height);
g.DrawEllipse(Pens.White, x - 1, y + magnifierPosition - 1, magnifier.Width + 2, magnifier.Height + 2);
g.DrawEllipse(Pens.Black, x, y + magnifierPosition, magnifier.Width, magnifier.Height);
g.DrawEllipse(Pens.White, x - 1, y + magnifierPosition - 1, magnifier.Width + 2 - 1, magnifier.Height + 2 - 1);
g.DrawEllipse(Pens.Black, x, y + magnifierPosition, magnifier.Width - 1, magnifier.Height - 1);
}
}
}

View file

@ -32,7 +32,7 @@ public class RegionCaptureOptions
{
public const int MagnifierPixelCountMinimum = 3;
public const int MagnifierPixelCountMaximum = 35;
public const int MagnifierPixelSizeMinimum = 2;
public const int MagnifierPixelSizeMinimum = 3;
public const int MagnifierPixelSizeMaximum = 30;
public const int SnapDistance = 30;
public const int MoveSpeedMinimum = 1;