Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
quick fix for gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
ponei authored Apr 28, 2019
1 parent ef32970 commit 158abff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SkeetUI/skeetForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,11 @@ public void drawTheme()

g.InterpolationMode = InterpolationMode.Bilinear;
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
g.DrawImage(gradientUpline, 7, 7, background.Width - 7, 1);
g.DrawImage(gradientDownline, 7, 8, background.Width - 7, 1);
if (skeetGradient)
{
g.DrawImage(gradientUpline, 7, 7, background.Width - 7, 1);
g.DrawImage(gradientDownline, 7, 8, background.Width - 7, 1);
}

g.InterpolationMode = InterpolationMode.Bilinear;
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Default;
Expand Down

0 comments on commit 158abff

Please sign in to comment.