Skip to content

Commit

Permalink
fixed shadow in FileDialog & ProgressBar will not update if not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Meragon committed Aug 4, 2017
1 parent f566440 commit 762146d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions System/Windows/Forms/FileDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,6 @@ protected override void OnKeyPress(KeyPressEventArgs e)
}
}
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);

e.Graphics.DrawLine(borderPen, 1, uwfHeaderHeight, Width - 1, uwfHeaderHeight);
}
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
Expand Down
1 change: 1 addition & 0 deletions System/Windows/Forms/ProgressBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private void AppOwnerOnUpdateEvent()

barX = 0;
barWidth = MathHelper.Step(barWidth, (value / maximum) * Width, 200);
updatePos = false;
}
private void UpdatePos()
{
Expand Down

0 comments on commit 762146d

Please sign in to comment.