mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-06 05:05:42 +13:00
Magnifier position fix
This commit is contained in:
parent
f7463f7db0
commit
2ed433ffef
2 changed files with 7 additions and 2 deletions
|
@ -290,7 +290,12 @@ private void DrawCrosshair(Graphics g)
|
||||||
private void DrawMagnifier(Graphics g)
|
private void DrawMagnifier(Graphics g)
|
||||||
{
|
{
|
||||||
Point mousePos = InputManager.MousePosition0Based;
|
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))
|
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.")]
|
[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; }
|
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; }
|
public bool ShowInfo { get; set; }
|
||||||
|
|
||||||
[DefaultValue(true), Description("Show magnifier.")]
|
[DefaultValue(true), Description("Show magnifier.")]
|
||||||
|
|
Loading…
Reference in a new issue