mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Magnifier position fix
This commit is contained in:
parent
f7463f7db0
commit
2ed433ffef
|
@ -290,7 +290,12 @@ private void DrawCrosshair(Graphics g)
|
|||
private void DrawMagnifier(Graphics g)
|
||||
{
|
||||
Point mousePos = InputManager.MousePosition0Based;
|
||||
int offsetX = 10, offsetY = 50;
|
||||
int offsetX = 10, offsetY = 10;
|
||||
|
||||
if (Config.ShowInfo && AreaManager.IsCurrentAreaValid && AreaManager.CurrentArea.Location == mousePos)
|
||||
{
|
||||
offsetY = 50;
|
||||
}
|
||||
|
||||
using (Bitmap magnifier = Magnifier(SurfaceImage, mousePos, Config.MagnifierPixelCount, Config.MagnifierPixelCount, Config.MagnifierPixelSize))
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ public class SurfaceOptions
|
|||
[DefaultValue(true), Description("Allow screenshot capture as soon as the mouse is released. This disables the ability to capture multiple shapes and to move and/or resize them.")]
|
||||
public bool QuickCrop { get; set; }
|
||||
|
||||
[DefaultValue(true), Description("Show coordinate and size information.")]
|
||||
[DefaultValue(false), Description("Show coordinate and size information.")]
|
||||
public bool ShowInfo { get; set; }
|
||||
|
||||
[DefaultValue(true), Description("Show magnifier.")]
|
||||
|
|
Loading…
Reference in a new issue