Skip to content

Commit

Permalink
Fix : clear flickering artefacts when zooming on borders
Browse files Browse the repository at this point in the history
reported in #132 (comment)
  • Loading branch information
pubpub-zz committed Aug 9, 2021
1 parent 85e5615 commit 0be2c6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FormCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4153,6 +4153,8 @@ private void tiSlide_Tick(object sender, EventArgs e)
{
Point p = new Point(MousePosition.X - ZoomImage.Width / 2, MousePosition.Y - ZoomImage.Height / 2);
Size sz = new Size(ZoomImage.Width, ZoomImage.Height);

g.Clear(Color.Black);
g.CopyFromScreen(p, Point.Empty, sz);
if (ZoomForm.pictureBox1.Visible)
{
Expand Down

0 comments on commit 0be2c6d

Please sign in to comment.