Changed: attempted to reduce flickering
This commit is contained in:
parent
716fe09791
commit
99a563dad6
@ -23,6 +23,7 @@ namespace AppLauncher.Windows.Forms
|
||||
|
||||
this.BackColor = Color.FromArgb(250, 250, 250);
|
||||
this.ContextMenuStrip = contextMenuStrip1;
|
||||
this.DoubleBuffered = true;
|
||||
|
||||
label1.ForeColor = Color.FromArgb(99, 105, 119);
|
||||
label1.Font = new Font(this.Font.FontFamily, 8.25F);
|
||||
|
@ -335,7 +335,7 @@ namespace AppLauncher.Windows.Forms
|
||||
|
||||
isAnimating = false;
|
||||
|
||||
this.Invalidate();
|
||||
this.Invalidate(this.DisplayRectangle, false);
|
||||
});
|
||||
}
|
||||
|
||||
@ -353,8 +353,6 @@ namespace AppLauncher.Windows.Forms
|
||||
while (this.Height < this.ExpandedHeight)
|
||||
{
|
||||
ThreadControl.SetHeight(this, (this.Height + expandIncrement));
|
||||
this.Invalidate();
|
||||
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
}
|
||||
@ -363,7 +361,7 @@ namespace AppLauncher.Windows.Forms
|
||||
|
||||
isAnimating = false;
|
||||
|
||||
this.Invalidate();
|
||||
this.Invalidate(this.DisplayRectangle, false);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user