mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-03 02:36:50 +13:00
Merge pull request #6117 from EricTetz/develop
fix 6111: screen-wide crosshair clipped at zoom-out
This commit is contained in:
commit
761eeb3f7a
1 changed files with 2 additions and 2 deletions
|
@ -1242,9 +1242,9 @@ private void DrawCrosshair(Graphics g)
|
||||||
int offset = 5;
|
int offset = 5;
|
||||||
PointF mousePos = ScaledClientMousePosition;
|
PointF mousePos = ScaledClientMousePosition;
|
||||||
PointF left = new PointF(mousePos.X - offset, mousePos.Y), left2 = new PointF(0, mousePos.Y);
|
PointF left = new PointF(mousePos.X - offset, mousePos.Y), left2 = new PointF(0, mousePos.Y);
|
||||||
PointF right = new PointF(mousePos.X + offset, mousePos.Y), right2 = new PointF(ClientArea.Width - 1, mousePos.Y);
|
PointF right = new PointF(mousePos.X + offset, mousePos.Y), right2 = new PointF((ClientArea.Width - 1) / ZoomFactor, mousePos.Y);
|
||||||
PointF top = new PointF(mousePos.X, mousePos.Y - offset), top2 = new PointF(mousePos.X, 0);
|
PointF top = new PointF(mousePos.X, mousePos.Y - offset), top2 = new PointF(mousePos.X, 0);
|
||||||
PointF bottom = new PointF(mousePos.X, mousePos.Y + offset), bottom2 = new PointF(mousePos.X, ClientArea.Height - 1);
|
PointF bottom = new PointF(mousePos.X, mousePos.Y + offset), bottom2 = new PointF(mousePos.X, (ClientArea.Height - 1) / ZoomFactor);
|
||||||
|
|
||||||
if (left.X - left2.X > 10)
|
if (left.X - left2.X > 10)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue