From 158abffafeac769266c677cb5ecd9bcaa1cf7e90 Mon Sep 17 00:00:00 2001 From: ponei Date: Sun, 28 Apr 2019 20:14:31 -0300 Subject: [PATCH] quick fix for gradient --- SkeetUI/skeetForm.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SkeetUI/skeetForm.cs b/SkeetUI/skeetForm.cs index 0c52b66..37dab81 100644 --- a/SkeetUI/skeetForm.cs +++ b/SkeetUI/skeetForm.cs @@ -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;